LogDeferredCallbackFailure
Listener that logs failed deferred callback executions using a PSR-3 compatible logger.
Description
This listener MUST be used to log all deferred callback failures. It SHALL log detailed information about the exception, callback, and arguments. This class MUST NOT throw exceptions during logging.
Properties
Methods
Constructs a new LogDeferredCallbackFailure listener.
Handles the DeferredCallbackFailed event by logging the failure.
Constructs a new LogDeferredCallbackFailure listener.
public
__construct(LoggerInterface
$logger) : mixed
Parameters
$logger
:
LoggerInterface
Description
the PSR-3 logger to use for logging failures
Handles the DeferredCallbackFailed event by logging the failure.
public
__invoke(DeferredCallbackFailed
$event) : void
Description
This method MUST log the exception details and callback information. It MUST NOT throw exceptions.
Parameters
Description
the event representing the callback failure