WithMonologChannel
in package
FinalYes
A reusable attribute to help configure a class as expecting a given logger channel.
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: wiring the logger instance into other classes is not managed by Monolog.
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $channel : string
Methods
- __construct() : mixed
Properties
$channel read-only
public
string
$channel
Methods
__construct()
public
__construct(string $channel) : mixed
Parameters
- $channel : string