From: Andrew Dolgov Date: Wed, 15 Aug 2018 12:08:31 +0000 (+0300) Subject: add debug stdout logger X-Git-Tag: 18.12~96 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=611aeb71970b73c070563079b7cc694e191eb358;p=tt-rss.git add debug stdout logger --- diff --git a/classes/logger.php b/classes/logger.php index 0c486e58..3b178ae5 100644 --- a/classes/logger.php +++ b/classes/logger.php @@ -49,6 +49,9 @@ class Logger { case "syslog": $this->adapter = new Logger_Syslog(); break; + case "stdout": + $this->adapter = new Logger_Stdout(); + break; default: $this->adapter = false; } @@ -61,4 +64,4 @@ class Logger { return self::$instance; } -} \ No newline at end of file +} diff --git a/classes/logger/stdout.php b/classes/logger/stdout.php new file mode 100644 index 00000000..856b2d02 --- /dev/null +++ b/classes/logger/stdout.php @@ -0,0 +1,33 @@ +