Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }