2017 © Pedro Peláez
 

library monolog-ignore-strategy

image

marcoazn89/monolog-ignore-strategy

  • Wednesday, March 16, 2016
  • by marcoazn89
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,100 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

monolog-ignore-strategy

A monolog activation strategy that ignores log levels within a range, (*1)

$logger = new \Monolog\Logger('Test');

$handler = new \Monolog\Handler\StreamHandler(
  'my.log',
  100
);

// Trigger logging from DEBUG or higuer but not ALERT
$logger->pushHandler(new \Monolog\Handler\FingersCrossedHandler(
  $handler,
  new Marcoazn89\IgnoreStrategy(\Monolog\Logger::DEBUG, [\Monolog\Logger::ERROR, \Monolog\Logger::ALERT])
));

The Versions

16/03 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

16/03 2016

v1.0

1.0.0.0

  Sources   Download

The Requires