/** * Get logger * @return AM_Log */ public function getLogger() { if (is_null($this->_oLogger)) { $this->_oLogger = Zend_Registry::get('log'); } $this->_oLogger->setEventItem('file', get_class($this)); return $this->_oLogger; }
/** * Retruns logger instance * * @return AM_Log */ public function getLog() { if (null === $this->_oLog) { $aOptions = $this->getOptions(); $oLog = AM_Log::factory($aOptions); $oLog->registerErrorHandler(); $this->setLog($oLog); } return $this->_oLog; }