\Monolog\Handler\FingersCrossedChannelLevelActivationStrategy

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);

Summary

Methods
Properties
Constants
__construct()
isHandlerActivated()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$defaultActionLevel
$channelToActionLevel
N/A

Properties

$defaultActionLevel

$defaultActionLevel : integer

Type

integer

$channelToActionLevel

$channelToActionLevel : array

Type

array

Methods

__construct()

__construct(integer|string  $defaultActionLevel, array  $channelToActionLevel = array()) 

Parameters

integer|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.

isHandlerActivated()

isHandlerActivated(array  $record) 

Returns whether the given record activates the handler.

Parameters

array $record