Menu

## PsrLogMessageProcessor
in package
implements ProcessorInterface

PsrLogMessageProcessor.php : 23

Processes a record's message according to PSR-3 rules

It replaces {foo} with the value from $context['foo']

##### Tags

author

  Jordi Boggiano j.boggiano@seld.be

### 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

PsrLogMessageProcessor.php : 25
`public mixed SIMPLE_DATE = "Y-m-d\TH:i:s.uP"`

### Properties

#### $dateFormat

PsrLogMessageProcessor.php : 28
`private string|null $dateFormat`

#### $removeUsedContextFields

PsrLogMessageProcessor.php : 31
`private bool $removeUsedContextFields`

### Methods

#### __construct()

PsrLogMessageProcessor.php : 37
`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()

PsrLogMessageProcessor.php : 47
`public __invoke(array<string|int, mixed> $record) : array<string|int, mixed>`

##### Parameters

$record : array<string|int, mixed>

##### Return values

array<string|int, mixed> —

## Search results