diff -r 000000000000 -r 4eba9c11703f web/Zend/Application/Resource/Log.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Application/Resource/Log.php Mon Dec 13 18:29:26 2010 +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; + } +}