LogDeferredCallbackFailure
in package
Read onlyYes
FinalYes
Listener that logs failed deferred callback executions using a PSR-3 compatible logger.
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.
Table of Contents
Properties
- $logger : LoggerInterface
Methods
- __construct() : mixed
- Constructs a new LogDeferredCallbackFailure listener.
- __invoke() : void
- Handles the DeferredCallbackFailed event by logging the failure.
Properties
$logger
private
LoggerInterface
$logger
Methods
__construct()
Constructs a new LogDeferredCallbackFailure listener.
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
-
the PSR-3 logger to use for logging failures
__invoke()
Handles the DeferredCallbackFailed event by logging the failure.
public
__invoke(DeferredCallbackFailed $event) : void
This method MUST log the exception details and callback information. It MUST NOT throw exceptions.
Parameters
- $event : DeferredCallbackFailed
-
the event representing the callback failure