Example #1
0
 protected function _initActionLogger()
 {
     $this->bootstrap('config');
     $config = Registry::getConfig();
     $zendLogger = new Zend_Log();
     $this->addDbWriterToLogger($zendLogger, $config->action->logging->db);
     $this->addSyslogWriterLogger($zendLogger, $config->action->logging->syslog);
     $actionLogger = $this->getNewActionLogger($zendLogger);
     $actionLogger->setLevel(Zend_Log::DEBUG);
     Registry::setActionLogger($actionLogger);
     return $actionLogger;
 }