PsrLogMessageProcessor
in package
implements
ProcessorInterface
Processes a record's message according to PSR-3 rules
It replaces {foo} with the value from $context['foo']
Tags
Interfaces, Classes and Traits
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
Table of Contents
- SIMPLE_DATE = "Y-m-d\TH:i:s.uP"
- $dateFormat : string|null
- $removeUsedContextFields : bool
- __construct() : mixed
- __invoke() : array<string|int, mixed>
Constants
SIMPLE_DATE
public
mixed
SIMPLE_DATE
= "Y-m-d\TH:i:s.uP"
Properties
$dateFormat
private
string|null
$dateFormat
$removeUsedContextFields
private
bool
$removeUsedContextFields
Methods
__construct()
public
__construct([string|null $dateFormat = null ][, bool $removeUsedContextFields = false ]) : mixed
Parameters
- $dateFormat : string|null = null
-
The format of the timestamp: one supported by DateTime::format
- $removeUsedContextFields : bool = false
-
If set to true the fields interpolated into message gets unset
Return values
mixed —__invoke()
public
__invoke(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
- $record : array<string|int, mixed>
Return values
array<string|int, mixed> —The processed record