diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Application/Resource/Log.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Application/Resource/Log.php Thu Jan 20 19:30:54 2011 +0100 @@ -0,0 +1,78 @@ +getLog(); + } + + /** + * Attach logger + * + * @param Zend_Log $log + * @return Zend_Application_Resource_Log + */ + public function setLog(Zend_Log $log) + { + $this->_log = $log; + return $this; + } + + public function getLog() + { + if (null === $this->_log) { + $options = $this->getOptions(); + $log = Zend_Log::factory($options); + $this->setLog($log); + } + return $this->_log; + } +}