Documentation

AsMonologProcessor
in package

A reusable attribute to help configure a class or a method as a processor.

Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer.

Using it with the Monolog library only has no effect at all: processors should still be turned into a callable if needed and manually pushed to the loggers and to the processable handlers.

Table of Contents

$channel  : string|null
$handler  : string|null
$method  : string|null
__construct()  : mixed

Properties

Methods

__construct()

public __construct([string|null $channel = null ][, string|null $handler = null ][, string|null $method = null ]) : mixed
Parameters
$channel : string|null = null

The logging channel the processor should be pushed to.

$handler : string|null = null

The handler the processor should be pushed to.

$method : string|null = null

The method that processes the records (if the attribute is used at the class level).

Return values
mixed

Search results