dev-master
9999999-dev http://www.qianguopai.comThe cjs Log package.
MIT
The Requires
- php >=5.4.0
- monolog/monolog ~1.11
by jelly
The cjs Log package.
cjs,log,cjs log,monolog, (*1)
https://github.com/Seldaek/monolog, (*2)
$channel = 'dev'; $log = new \CjsLog\Writer( new \Monolog\Logger($channel) );, (*3)
$logFile = sprintf("/data/logs/app/%s.%s", 'jelly', 'log');, (*4)
$log->useDailyFiles($logFile, 5, 'debug');, (*5)
$log->info("hello test");, (*6)
$log->debug("hello test");, (*7)
$log->warning("hello test");, (*8)
The cjs Log package.
MIT