/** * Logs the given exception * @param \Exception $exception the exception to be logged */ public function logException($exception) { $category = get_class($exception); if ($exception instanceof HttpException) { $category = 'base\\HttpException:' . $exception->statusCode; } elseif ($exception instanceof \ErrorException) { $category .= ':' . $exception->getSeverity(); } Application::error($exception, $category); }