2017 © Pedro Peláez
 

library wjizy-log

log

image

wjizy/wjizy-log

log

  • Friday, January 26, 2018
  • by wjizy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

wjizy-log

log, (*1)

INSTALL

composer require wjizy/wjizy-log dev-master, (*2)

USE

```$xslt namespace wjizyLog\test; use wjizyLog\api\Logger;, (*3)

include_once '../vendor/autoload.php';, (*4)

class test{ function __construct() { $log_config = [ Logger::INFO => '/data/root/wjizy-log/test/info-'.date('Ymd',time()).'.log', Logger::DEBUG => '/data/root/wjizy-log/test/debug-'.date('Ymd',time()).'.log', Logger::ERROR => '/data/root/wjizy-log/test/error-'.date('Ymd',time()).'.log', Logger::WARN => '/data/root/wjizy-log/test/warn-'.date('Ymd',time()).'.log', ]; $logger = new Logger($log_config); $logger->info(json_encode(['a'=>1111111])); $logger->debug('hello world'); $logger->error('wjizy'); $logger->warn('我是中国人'); } } new test(); ```, (*5)

The Versions

26/01 2018

dev-master

9999999-dev

log

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.9

 

by wj