Added to the console so that external logging definitions are pulled in from a loggerconfig.php file if the file exists.
This commit is contained in:
parent
35b3db13d8
commit
0fc91f053a
4 changed files with 67 additions and 2 deletions
9
loggerconfig.php.example
Normal file
9
loggerconfig.php.example
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
return array(
|
||||
'RunCommand' => function() {
|
||||
return array(
|
||||
new \Monolog\Handler\StreamHandler('path/to/logs/errors', \Monolog\Logger::ERROR),
|
||||
new \Monolog\Handler\RotatingFileHandler('path/to/logs/everything',3, \Monolog\Logger::INFO),
|
||||
);
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue