Documentation

ErrorLevelActivationStrategy
in package
implements ActivationStrategyInterface

Error level based activation strategy.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

phpstan-import-type

Level from \Monolog\Logger

phpstan-import-type

LevelName from \Monolog\Logger

Interfaces, Classes and Traits

ActivationStrategyInterface
Interface for activation strategies for the FingersCrossedHandler.

Table of Contents

$actionLevel  : Level
__construct()  : mixed
isHandlerActivated()  : bool
Returns whether the given record activates the handler.

Properties

Methods

__construct()

public __construct(int|string $actionLevel) : mixed
Parameters
$actionLevel : int|string

Level or name or value

Tags
phpstan-param

Level|LevelName|LogLevel::* $actionLevel

Return values
mixed

isHandlerActivated()

Returns whether the given record activates the handler.

public isHandlerActivated(array<string|int, mixed> $record) : bool
Parameters
$record : array<string|int, mixed>
Return values
bool

Search results