getExceptionLevel($exception); $this->logException(__METHOD__, $exception, $level); } /** * Render an exception into an HTTP response. * * @param Request $request * @param Exception $exception * @return Response */ public function render($request, Exception $exception): Response { return parent::render($request, $exception); } /** * @param Exception $exception * @return string */ protected function getExceptionLevel(Exception $exception): string { if (method_exists($exception, 'getLevel')) { return mb_strtolower($exception->getLevel()); } return LogsLevelsEnum::ERROR; } }