Documentation

ExactLevelFilter
in package
implements LogFilter

Tags
author

Bryan Alves bryanalves@gmail.com

category

Horde

license

http://www.horde.org/licenses/bsd BSD

subpackage

Filters

Interfaces, Classes, Traits and Enums

LogFilter

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

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?

Search results