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

CloneableInstantiable
ImplementsMonolog\Handler\FingersCrossed\ActivationStrategyInterface
Methods
public __construct( $defaultActionLevel, array $channelToActionLevel = [])
 
    public isHandlerActivated(array $record) : bool
    Properties
    private $channelToActionLevel
     
    • var array
    private $defaultActionLevel
     
    • var int
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only