class Log implements ContextualAttribute

Methods

__construct(UnitEnum|string|null $channel = null, UnitEnum|string|null $name = null)

Create a new class instance.

static LoggerInterface
resolve(Log $attribute, Container $container)

Resolve the log channel.

Details

at line 25
__construct(UnitEnum|string|null $channel = null, UnitEnum|string|null $name = null)

Create a new class instance.

Parameters

UnitEnum|string|null $channel

the log configuration's channel name

UnitEnum|string|null $name

The name to prefix all logs with. Only to be used with Monolog drivers.

at line 34
static LoggerInterface resolve(Log $attribute, Container $container)

Resolve the log channel.

Parameters

Log $attribute
Container $container

Return Value

LoggerInterface