Add debug option
This commit is contained in:
@@ -13,8 +13,11 @@ class LoggingProvider 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));
|
||||
$logger->pushHandler(new SyslogHandler('kanboard', LOG_USER, Logger::INFO));
|
||||
|
||||
if (DEBUG) {
|
||||
$logger->pushHandler(new StreamHandler(__DIR__.'/../../data/debug.log', Logger::DEBUG));
|
||||
}
|
||||
|
||||
$container['logger'] = $logger;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user