diff options
Diffstat (limited to 'app/ServiceProvider/Logging.php')
-rw-r--r-- | app/ServiceProvider/Logging.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/ServiceProvider/Logging.php b/app/ServiceProvider/Logging.php deleted file mode 100644 index 9737cadc..00000000 --- a/app/ServiceProvider/Logging.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -namespace ServiceProvider; - -use Pimple\Container; -use Pimple\ServiceProviderInterface; -use Monolog\Logger; -use Monolog\Handler\StreamHandler; -use Monolog\Handler\SyslogHandler; - -class Logging implements ServiceProviderInterface -{ - public function register(Container $container) - { - $logger = new Logger('app'); - $logger->pushHandler(new StreamHandler(__DIR__.'/../../data/debug.log', Logger::DEBUG)); - $logger->pushHandler(new SyslogHandler('kanboard', LOG_USER, Logger::DEBUG)); - - $container['logger'] = $logger; - } -} |