diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Application/Resource/Log.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Application/Resource/Log.php Fri Mar 11 15:05:35 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; + } +}