ExactLevelFilter
in package
implements
LogFilter
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $level : int
- $name : string|null
- __construct() : mixed
- Filter out any log messages not equal to $level.
- accept() : bool
- Returns TRUE to accept the message, FALSE to block it.
- constructFromLevel() : self
Properties
$level
protected
int
$level
$name
protected
string|null
$name
= null
Methods
__construct()
Filter out any log messages not equal to $level.
public
__construct(int $level[, string|null $name = null ]) : mixed
Parameters
- $level : int
-
Log level to pass through the filter
- $name : string|null = null
-
optionally also check for same level name
Return values
mixed —accept()
Returns TRUE to accept the message, FALSE to block it.
public
accept(LogMessage $event) : bool
Parameters
- $event : LogMessage
-
Log event
Return values
bool —accepted?
constructFromLevel()
public
static constructFromLevel(LogLevel $level) : self
Parameters
- $level : LogLevel