From 575860304a3175f4e01e08385249bcdc61d3f18c Mon Sep 17 00:00:00 2001 From: aliaxander Date: Sun, 21 Feb 2016 01:12:08 +0300 Subject: [PATCH] Logger on --- .gitignore | 2 +- loggerconfig.php | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 loggerconfig.php diff --git a/.gitignore b/.gitignore index 034ac5bb..e1958319 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /composer.lock .idea vendor/ +.gitignore composer.phar config.php .DS_Store @@ -10,7 +11,6 @@ config.php .htaccess PHPCI/config.yml cache -/loggerconfig.php /pluginconfig.php PHPCI/Model/Migration.php PHPCI/Model/Base/MigrationBase.php diff --git a/loggerconfig.php b/loggerconfig.php new file mode 100644 index 00000000..ffa22204 --- /dev/null +++ b/loggerconfig.php @@ -0,0 +1,24 @@ + function() { + return array( + new \Monolog\Handler\StreamHandler(__DIR__ . DIRECTORY_SEPARATOR . 'errors.log', \Monolog\Logger::ERROR), + ); + }, + /** Loggers for the RunCommand */ + 'RunCommand' => function() { + return array( + new \Monolog\Handler\RotatingFileHandler(__DIR__ . DIRECTORY_SEPARATOR . 'everything',3, \Monolog\Logger::DEBUG), + ); + }, +);