/** * Write exception to log * * @param Exception $e * @param array $context * @return self | null */ public function logException(Exception $e, array $context = []) { if ($this->_isNotLoggableException()) { return; } $file = $this->_config->getExceptionLogFile(); $context['exception'] = $e; $this->log($e->getMessage(), Zend_Log::ERR, $file, false, $context); return $this; }