ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
12
namespace
Monolog\Handler\FingersCrossed
;
13
14
use
Monolog\Logger
;
15
21
class
ErrorLevelActivationStrategy
implements
ActivationStrategyInterface
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
}
Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy\$actionLevel
$actionLevel
Definition:
ErrorLevelActivationStrategy.php:23
Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy
Error level based activation strategy.
Definition:
ErrorLevelActivationStrategy.php:21
Monolog\Logger\toMonologLevel
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
Definition:
Logger.php:473
Logger
Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy\isHandlerActivated
isHandlerActivated(array $record)
Returns whether the given record activates the handler.
Definition:
ErrorLevelActivationStrategy.php:30
Monolog\Handler\FingersCrossed
Definition:
ActivationStrategyInterface.php:12
Monolog\Handler\FingersCrossed\ActivationStrategyInterface
Interface for activation strategies for the FingersCrossedHandler.
Definition:
ActivationStrategyInterface.php:19
Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy\__construct
__construct($actionLevel)
Definition:
ErrorLevelActivationStrategy.php:25
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
libs
composer
vendor
monolog
monolog
src
Monolog
Handler
FingersCrossed
ErrorLevelActivationStrategy.php
Generated on Tue Jan 28 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)