Commaaa2
This commit is contained in:
@@ -49,6 +49,23 @@ trait ParsesLogConfiguration
|
||||
throw new InvalidArgumentException('Invalid log level.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the action level from the given configuration.
|
||||
*
|
||||
* @param array $config
|
||||
* @return int
|
||||
*/
|
||||
protected function actionLevel(array $config)
|
||||
{
|
||||
$level = $config['action_level'] ?? 'debug';
|
||||
|
||||
if (isset($this->levels[$level])) {
|
||||
return $this->levels[$level];
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException('Invalid log action level.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract the log channel from the given configuration.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user