#include <filter.h>
Inheritance diagram for log4cplus::spi::LogLevelRangeFilter:
Public Member Functions | |
LogLevelRangeFilter () | |
LogLevelRangeFilter (const log4cplus::helpers::Properties &p) | |
virtual FilterResult | decide (const InternalLoggingEvent &event) const |
Return the decision of this filter. |
The filter admits three options LogLevelMin, LogLevelMax and AcceptOnMatch.
If the LogLevel of the Logging event is not between Min and Max (inclusive), then DENY is returned.
If the Logging event LogLevel is within the specified range, then if AcceptOnMatch is true, ACCEPT is returned, and if AcceptOnMatch is false, NEUTRAL is returned.
If LogLevelMin
is not defined, then there is no minimum acceptable LogLevel (ie a LogLevel is never rejected for being too "low"/unimportant). If LogLevelMax
is not defined, then there is no maximum acceptable LogLevel (ie a LogLevel is never rejected for beeing too "high"/important).
Refer to the setThreshold method available to all
appenders for a more convenient way to filter out events by LogLevel.
Definition at line 200 of file filter.h.
|
|
|
|
|
Return the decision of this filter.
Implements log4cplus::spi::Filter. |