\Monolog\AttributeAsMonologProcessor

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.

Summary

Methods
Properties
Constants
__construct()
$channel
$handler
$method
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

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

Parameters

string|null $channel

The logging channel the processor should be pushed to.

string|null $handler

The handler the processor should be pushed to.

string|null $method

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

Returns

mixed —