bundle/EventListener/ExceptionSerializerListener.php
private function logException(Exception $exception): void
    {
        if ($exception instanceof HttpExceptionInterface && $exception->getStatusCode() < 500) {
            return;
        }

        $this->logger->critical(
            sprintf(
                'Uncaught PHP Exception %s: "%s" at %s line %s',
                get_class($exception),
                $exception->getMessage(),
                $exception->getFile(),
                $exception->getLine()
            ),
            ['exception' => $exception]
        );
    }
private function logException(Exception $exception): void
    {
        if ($exception instanceof HttpExceptionInterface && $exception->getStatusCode() < 500) {
            return;
        }

        $this->logger->critical(
            sprintf(
                'Uncaught PHP Exception %s: "%s" at %s line %s',
                get_class($exception),
                $exception->getMessage(),
                $exception->getFile(),
                $exception->getLine()
            ),
            ['exception' => $exception]
        );
    }
private function logException ( Exception $ exception ) : void { if ( $ exception instanceof HttpExceptionInterface && $ exception -> getStatusCode ( ) < 500 ) { return ; } $ this -> logger -> critical ( sprintf ( 'Uncaught PHP Exception %s: "%s" at %s line %s' , get_class ( $ exception ) , $ exception -> getMessage ( ) , $ exception -> getFile ( ) , $ exception -> getLine ( ) ) , [ 'exception' => $ exception ] ) ; }
Logs all critical errors.
Logs all critical errors .