Logger: add/update documentation

refs #7060
This commit is contained in:
Alexander Klimov 2014-09-03 13:53:46 +02:00
parent f4b820aa57
commit 33669f8969
1 changed files with 13 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class Logger
/** /**
* The log writer to use * The log writer to use
* *
* @var LogWriter * @var \Icinga\Logger\LogWriter
*/ */
protected $writer; protected $writer;
@ -71,9 +71,8 @@ class Logger
* *
* @param Zend_Config $config The configuration to initialize the writer with * @param Zend_Config $config The configuration to initialize the writer with
* *
* @return LogWriter The requested log writer * @return \Icinga\Logger\LogWriter The requested log writer
* * @throws ConfigurationError If the requested writer cannot be found
* @throws ConfigurationError In case the requested writer cannot be found
*/ */
protected function createWriter(Zend_Config $config) protected function createWriter(Zend_Config $config)
{ {
@ -195,11 +194,21 @@ class Logger
} }
} }
/**
* Get the log writer to use
*
* @return \Icinga\Logger\LogWriter
*/
public function getWriter() public function getWriter()
{ {
return $this->writer; return $this->writer;
} }
/**
* Get this' instance
*
* @return Logger
*/
public static function getInstance() public static function getInstance()
{ {
return static::$instance; return static::$instance;