summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/LoggingProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-30 15:37:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-30 15:37:25 -0400
commit94cbdb3d9bb4a4731b08c03d59f497a8836a6acb (patch)
tree90587a9e03c8101017738e5a12a6e1bf49fecfae /app/ServiceProvider/LoggingProvider.php
parent2e0eb623850ae4003a566ed56f4be94c1aa166bf (diff)
Update logger
Diffstat (limited to 'app/ServiceProvider/LoggingProvider.php')
-rw-r--r--app/ServiceProvider/LoggingProvider.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/ServiceProvider/LoggingProvider.php b/app/ServiceProvider/LoggingProvider.php
index 76263da3..dd79d654 100644
--- a/app/ServiceProvider/LoggingProvider.php
+++ b/app/ServiceProvider/LoggingProvider.php
@@ -2,6 +2,7 @@
namespace ServiceProvider;
+use Psr\Log\LogLevel;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use SimpleLogger\Logger;
@@ -12,8 +13,11 @@ class LoggingProvider implements ServiceProviderInterface
{
public function register(Container $container)
{
+ $syslog = new Syslog('kanboard');
+ $syslog->setLevel(LogLevel::ERROR);
+
$logger = new Logger;
- $logger->setLogger(new Syslog('kanboard'));
+ $logger->setLogger($syslog);
if (DEBUG) {
$logger->setLogger(new File(DEBUG_FILE));