trait ParsesLogConfiguration

Properties

protected array $levels

The Log levels.

Methods

string
getFallbackChannelName()

Get fallback log channel name.

Level
level(array $config)

Parse the string level into a Monolog constant.

Level
actionLevel(array $config)

Parse the action level from the given configuration.

string
parseChannel(array $config)

Extract the log channel from the given configuration.

Details

at line 29
abstract protected string getFallbackChannelName()

Get fallback log channel name.

Return Value

string

at line 36
protected Level level(array $config)

Parse the string level into a Monolog constant.

Parameters

array $config

Return Value

Level

Exceptions

InvalidArgumentException

at line 52
protected Level actionLevel(array $config)

Parse the action level from the given configuration.

Parameters

array $config

Return Value

Level

Exceptions

InvalidArgumentException

at line 66
protected string parseChannel(array $config)

Extract the log channel from the given configuration.

Parameters

array $config

Return Value

string