\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 : 

Type

$channelToActionLevel

$channelToActionLevel : 

Type

Methods

__construct()

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

Parameters

integer $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) : Boolean

Returns whether the given record activates the handler.

Parameters

array $record

Returns

Boolean