File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: ErrorLevelActivationStrategy.php <?php declare(strict_types=1); /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler\FingersCrossed; use Monolog\Logger; use Psr\Log\LogLevel; /** * Error level based activation strategy. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> * * @phpstan-import-type Level from \Monolog\Logger * @phpstan-import-type LevelName from \Monolog\Logger */ class ErrorLevelActivationStrategy implements ActivationStrategyInterface { /** * @var Level */ private $actionLevel; /** * @param int|string $actionLevel Level or name or value * * @phpstan-param Level|LevelName|LogLevel::* $actionLevel */ public function __construct($actionLevel) { $this->actionLevel = Logger::toMonologLevel($actionLevel); } public function isHandlerActivated(array $record): bool { return $record['level'] >= $this->actionLevel; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirActivationStrategyInterface.phpFile720.00 B Rename | Delete | EditChannelLevelActivationStrategy.phpFile2.40 KB Rename | Delete | EditErrorLevelActivationStrategy.phpFile1.08 KB Rename | Delete | Edit