Lines Matching defs:error
56 'error' => array(
167 'Valid levels are: debug, info, notice, success, warning, error, critical, alert, emergency.',
252 * Exits the program on a fatal error
254 * @param \Exception|string $error either an exception or an error message
257 public function fatal($error, array $context = array())
260 if (is_object($error) && is_a($error, 'Exception')) {
261 /** @var Exception $error */
262 $this->logMessage('debug', get_class($error) . ' caught in ' . $error->getFile() . ':' . $error->getLine());
263 $this->logMessage('debug', $error->getTraceAsString());
264 $code = $error->getCode();
265 $error = $error->getMessage();
272 $this->logMessage('critical', $error, $context);
294 // unknown level is always an error
295 if (!isset($this->loglevel[$level])) $level = 'error';