4 * This file is part of the Monolog package.
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Monolog\Handler\FingersCrossed;
17 * Error level based activation strategy.
19 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
21 class ErrorLevelActivationStrategy implements ActivationStrategyInterface
25 public function __construct($actionLevel)
27 $this->actionLevel = Logger::toMonologLevel($actionLevel);
30 public function isHandlerActivated(array $record)
32 return $record['level'] >= $this->actionLevel;