Example #1
0
 public function observeExceptions(Exception $exception)
 {
     if ($this->_logger !== null) {
         $priority = $exception instanceof Sitengine_Exception ? $exception->getPriority() : Zend_Log::ERR;
         $priority = $priority !== null ? $priority : Zend_Log::ERR;
         $this->_logger->log($exception->getMessage(), $priority);
     }
 }