From 611aeb71970b73c070563079b7cc694e191eb358 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Aug 2018 15:08:31 +0300 Subject: [PATCH] add debug stdout logger --- classes/logger.php | 5 ++++- classes/logger/stdout.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 classes/logger/stdout.php 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 @@ +