LogErrorEventListener
Class
Read only:
Yes
Final:
Yes
Log dispatcher error events through a PSR-3 logger.
Description
The logged context includes both the throwable and the emitted ErrorEvent.
Properties
: LoggerInterface
Methods
__construct()
: mixed
Create a listener that records dispatcher failures.
__invoke()
: void
Log the throwable carried by the provided error event.
Create a listener that records dispatcher failures.
public
__construct(LoggerInterface
$logger) : mixed
Parameters
$logger
:
LoggerInterface
Description
logger used to record error events
Log the throwable carried by the provided error event.
public
__invoke(ErrorEvent
$event) : void
Parameters
Description
error event emitted by the dispatcher