From 6aeab59eadff3f4eb89500f3daf826e6c1cb28bd Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Wed, 3 Sep 2014 12:02:11 +0200 Subject: [PATCH] Logger: implement getWriter() and getInstance() refs #7060 --- library/Icinga/Logger/Logger.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Logger/Logger.php b/library/Icinga/Logger/Logger.php index c3550a610..b01ac2a71 100644 --- a/library/Icinga/Logger/Logger.php +++ b/library/Icinga/Logger/Logger.php @@ -194,4 +194,14 @@ class Logger static::$instance->log(static::formatMessage(func_get_args()), static::$DEBUG); } } + + public function getWriter() + { + return $this->writer; + } + + public static function getInstance() + { + return static::$instance; + } }