ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ErrorLevelActivationStrategy.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the Monolog package.
5  *
6  * (c) Jordi Boggiano <j.boggiano@seld.be>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
13 
14 use Monolog\Logger;
15 
22 {
23  private $actionLevel;
24 
25  public function __construct($actionLevel)
26  {
27  $this->actionLevel = Logger::toMonologLevel($actionLevel);
28  }
29 
30  public function isHandlerActivated(array $record)
31  {
32  return $record['level'] >= $this->actionLevel;
33  }
34 }
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
Definition: Logger.php:473
isHandlerActivated(array $record)
Returns whether the given record activates the handler.
Interface for activation strategies for the FingersCrossedHandler.
Create styles array
The data for the language used.