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:
meadsteve 2013-11-02 15:28:24 +00:00
commit 0fc91f053a
4 changed files with 67 additions and 2 deletions

9
loggerconfig.php.example Normal file
View 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),
);
}
);