Fixed logging (Now logging autostarting without special loggerconfig.php). Issue #59.

This commit is contained in:
Dmitry Khomutov 2017-05-23 23:17:39 +07:00
commit 7e2f63142d
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
6 changed files with 9 additions and 95 deletions

View file

@ -1,16 +0,0 @@
<?php
return [
/** Loggers attached to every command */
"_" => function() {
return [
new \Monolog\Handler\StreamHandler(__DIR__ . DIRECTORY_SEPARATOR . 'errors.log', \Monolog\Logger::ERROR),
];
},
/** Loggers for the RunCommand */
'RunCommand' => function() {
return [
new \Monolog\Handler\RotatingFileHandler(__DIR__ . DIRECTORY_SEPARATOR . 'everything', 3, \Monolog\Logger::DEBUG),
];
},
];