trait ParsesLogConfiguration (View source)

Properties

protected array $levels

The Log levels.

Methods

string
getFallbackChannelName()

Get fallback log channel name.

int
level(array $config)

Parse the string level into a Monolog constant.

int
actionLevel(array $config)

Parse the action level from the given configuration.

string
parseChannel(array $config)

Extract the log channel from the given configuration.

Details

abstract protected string getFallbackChannelName()

Get fallback log channel name.

Return Value

string

protected int level(array $config)

Parse the string level into a Monolog constant.

Parameters

array $config

Return Value

int

Exceptions

InvalidArgumentException

protected int actionLevel(array $config)

Parse the action level from the given configuration.

Parameters

array $config

Return Value

int

Exceptions

InvalidArgumentException

protected string parseChannel(array $config)

Extract the log channel from the given configuration.

Parameters

array $config

Return Value

string