This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a certain range.
This is a very simple filter based on level matching, which can be used to reject messages with priorities outside a certain range. The filter admits three options LevelMin, LevelMax and AcceptOnMatch.
If the level of the LoggerLoggingEvent is not between Min and Max (inclusive), then LOG4PHP_LOGGER_FILTER_DENY is returned.
If the Logging event level is within the specified range, then if AcceptOnMatch is true, LOG4PHP_LOGGER_FILTER_ACCEPT is returned, and if AcceptOnMatch is false, LOG4PHP_LOGGER_FILTER_NEUTRAL is returned.
If LevelMin is not defined, then there is no minimum acceptable level (ie a level is never rejected for being too "low"/unimportant). If LevelMax is not defined, then there is no maximum acceptable level (ie a level is never rejected for beeing too "high"/important).
Refer to the LoggerAppenderSkeleton::setThreshold() method available to all appenders extending LoggerAppenderSkeleton for a more convenient way to filter out events by level.
Located in Program_Root/log4php/varia/LoggerLevelRangeFilter.php (line 67)
LoggerFilter | --LoggerLevelRangeFilter
Inherited from LoggerFilter
LoggerFilter::$next
Return the decision of this filter.
Return the decision of this filter.
Inherited From LoggerFilter
LoggerFilter::activateOptions()
LoggerFilter::decide()
Documentation generated on Mon, 15 Sep 2003 21:12:59 +0200 by phpDocumentor 1.2.2