ProcessableHandlerTrait
Helper trait for implementing ProcessableInterface
This trait is present in monolog 1.x to ease forward compatibility.
Tags
Table of Contents
Properties
- $processors : array<string|int, callable>
Methods
- popProcessor() : callable
- {@inheritdoc}
- pushProcessor() : HandlerInterface
- {@inheritdoc}
- processRecord() : array<string|int, mixed>
- Processes a record.
- resetProcessors() : void
Properties
$processors
protected
array<string|int, callable>
$processors
= []
Methods
popProcessor()
{@inheritdoc}
public
popProcessor() : callable
Return values
callablepushProcessor()
{@inheritdoc}
public
pushProcessor(mixed $callback) : HandlerInterface
Parameters
- $callback : mixed
Tags
Return values
HandlerInterfaceprocessRecord()
Processes a record.
protected
processRecord(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
- $record : array<string|int, mixed>
Return values
array<string|int, mixed>resetProcessors()
protected
resetProcessors() : void