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.
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$channel read-only
public
string|null
$channel
= null
$handler read-only
public
string|null
$handler
= null
$method read-only
public
string|null
$method
= null
$priority read-only
public
int|null
$priority
= null
Methods
__construct()
public
__construct([string|null $channel = null ][, string|null $handler = null ][, string|null $method = null ][, int|null $priority = 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).
- $priority : int|null = null
-
The priority of the processor so the order can be determined.