Class LoggerFilterLevelMatch
This is a very simple filter based on level matching.
The filter admits two options LevelToMatch and
AcceptOnMatch. If there is an exact match between the value
of the LevelToMatch option and the level of the
LoggerLoggingEvent, then the LoggerFilterLevelMatch::decide() method returns
LoggerFilter::ACCEPT in case the AcceptOnMatch
option value is set to true, if it is false then
LoggerFilter::DENY is returned. If there is no match,
LoggerFilter::NEUTRAL is returned.
<
p> An example for this filter:
{@example ../../examples/php/filter_levelmatch.php 19}
<
p> The corresponding XML file:
{@example ../../examples/resources/filter_levelmatch.xml 18}
- LoggerConfigurable
-
LoggerFilter
-
LoggerFilterLevelMatch
Package: log4php\filters
Version: $Revision: 1213283 $
Since: 0.6
Located at core/log4php/filters/LoggerFilterLevelMatch.php
Version: $Revision: 1213283 $
Since: 0.6
Located at core/log4php/filters/LoggerFilterLevelMatch.php
public
|
|
public
|
|
public
integer
|
activateOptions(),
addNext(),
getNext()
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString(),
warn()
|
ACCEPT,
DENY,
NEUTRAL
|
protected
boolean
|
$acceptOnMatch
Indicates if this event should be accepted or denied on match |
#
true
|
protected
|
$levelToMatch
The level, when to match |
$next
|