/** * 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; }