$defaultActionLevel
$defaultActionLevel : \Monolog\Handler\FingersCrossed\Level
Channel and Error level based monolog activation strategy. Allows to trigger activation based on level per channel. e.g. trigger activation on level 'ERROR' by default, except for records of the 'sql' channel; those should trigger activation on level 'WARN'.
Example:
$activationStrategy = new ChannelLevelActivationStrategy(
Logger::CRITICAL,
array(
'request' => Logger::ALERT,
'sensitive' => Logger::ERROR,
)
);
$handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy);
$channelToActionLevel : array<string,\Monolog\Handler\FingersCrossed\Level>
__construct(int|string $defaultActionLevel, array<string,int> $channelToActionLevel = []) : mixed
int|string | $defaultActionLevel | The default action level to be used if the record's category doesn't match any |
array |
$channelToActionLevel | An array that maps channel names to action levels. |