Drupal 8  8.0.2
ExceptionLoggingSubscriber Class Reference
Inheritance diagram for ExceptionLoggingSubscriber:

Public Member Functions

 __construct (LoggerChannelFactoryInterface $logger)
 
 on403 (GetResponseForExceptionEvent $event)
 
 on404 (GetResponseForExceptionEvent $event)
 
 onError (GetResponseForExceptionEvent $event)
 
 onException (GetResponseForExceptionEvent $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $logger
 

Detailed Description

Log exceptions without further handling.

Constructor & Destructor Documentation

__construct ( LoggerChannelFactoryInterface  $logger)

Constructs a new ExceptionLoggingSubscriber.

Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface$loggerThe logger channel factory.

References Drupal\logger().

Here is the call graph for this function:

Member Function Documentation

static getSubscribedEvents ( )
static

{}

on403 ( GetResponseForExceptionEvent  $event)

Log 403 errors.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Drupal\logger().

Here is the call graph for this function:

on404 ( GetResponseForExceptionEvent  $event)

Log 404 errors.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Drupal\logger().

Here is the call graph for this function:

onError ( GetResponseForExceptionEvent  $event)

Log not-otherwise-specified errors, including HTTP 500.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

References Error\decodeException(), and Drupal\logger().

Here is the call graph for this function:

onException ( GetResponseForExceptionEvent  $event)

Log all exceptions.

Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent$eventThe event to process.

The documentation for this class was generated from the following file: