Documentation

TagProcessor
in package
implements ProcessorInterface

Adds a tags array into record

Tags
author

Martijn Riemers

Interfaces, Classes and Traits

ProcessorInterface
An optional interface to allow labelling Monolog processors.

Table of Contents

$tags  : array<string|int, string>
__construct()  : mixed
__invoke()  : array<string|int, mixed>
addTags()  : self
setTags()  : self

Properties

Methods

__construct()

public __construct([array<string|int, string> $tags = [] ]) : mixed
Parameters
$tags : array<string|int, string> = []
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

addTags()

public addTags([array<string|int, string> $tags = [] ]) : self
Parameters
$tags : array<string|int, string> = []
Return values
self

setTags()

public setTags([array<string|int, string> $tags = [] ]) : self
Parameters
$tags : array<string|int, string> = []
Return values
self

Search results