PHPackages                             log4p/log4p - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. log4p/log4p

ActiveProject[Logging &amp; Monitoring](/categories/logging)

log4p/log4p
===========

implementation of log for php

1.0.0(8y ago)1502MITPHPPHP &gt;=7.0

Since Jul 6Pushed 8y agoCompare

[ Source](https://github.com/DestinyAries/log4p)[ Packagist](https://packagist.org/packages/log4p/log4p)[ RSS](/packages/log4p-log4p/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Log4p
=====

[](#log4p)

Implementation of log for php

Install
-------

[](#install)

Via Composer

```
$ composer require log4p/log4p
```

Usage
-----

[](#usage)

```
// use default config
$logger = LoggerFactory::getLogger(__CLASS__);
$logger->info("This is a log info.", ['paramKey1'=>'paramValue1','paramKey2'=>'paramValue2']);
// use custom config
LoggerFactory::setConfigs(dirname(__DIR__).'/config/myconfig.php');
$logger = LoggerFactory::getLogger(__CLASS__);
$logger->info("This is a custom log info.", ['paramKey1'=>'paramValue1','paramKey2'=>'paramValue2']);
```

Config
------

[](#config)

```
