TagProcessor
in package
implements
ProcessorInterface
Adds a tags array into record
Tags
Table of Contents
Interfaces
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
Properties
- $tags : array<string|int, string>
Methods
- __construct() : mixed
- __invoke() : LogRecord
- addTags() : $this
- setTags() : $this
Properties
$tags
private
array<string|int, string>
$tags
Methods
__construct()
public
__construct([array<string|int, string> $tags = [] ]) : mixed
Parameters
- $tags : array<string|int, string> = []
__invoke()
public
__invoke(LogRecord $record) : LogRecord
Parameters
- $record : LogRecord
Tags
Return values
LogRecord —The processed record
addTags()
public
addTags([array<string|int, string> $tags = [] ]) : $this
Parameters
- $tags : array<string|int, string> = []
Return values
$thissetTags()
public
setTags([array<string|int, string> $tags = [] ]) : $this
Parameters
- $tags : array<string|int, string> = []