MonologHandlerAdapter
in package
implements
Handler
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- handle() : void
Methods
__construct()
public
__construct(HandlerInterface $delegate[, array<int, callable(LogRecord): LogRecord> $processors = [] ]) : mixed
Parameters
- $delegate : HandlerInterface
- $processors : array<int, callable(LogRecord): LogRecord> = []
-
Monolog processors applied to the converted LogRecord before the delegate handler runs. Use this to attach Monolog's stock processors (HostnameProcessor, ProcessIdProcessor, MemoryUsageProcessor, GitProcessor, etc.) — they would otherwise be skipped because we bypass Monolog\Logger. All Monolog processors implement ProcessorInterface (an __invoke contract), so they're callable.
handle()
public
handle(Record $record) : void
Parameters
- $record : Record