Inheritance diagram for log4cplus::spi::LogLevelMatchFilter:
Public Member Functions | |
LogLevelMatchFilter (const log4cplus::helpers::Properties &p, log4cplus::tstring &) | |
virtual FilterResult | decide (const InternalLoggingEvent &event) const |
Return the decision of this filter. | |
Private Member Functions | |
void | init () |
Private Attributes | |
bool | acceptOnMatch |
Do we return ACCEPT when a match occurs. | |
LogLevel | logLevelToMatch |
The filter admits two options LogLevelToMatch and AcceptOnMatch. If there is an exact match between the value of the LogLevelToMatch option and the LogLevel of the spi::InternalLoggingEvent, then the decide method returns ACCEPT in case the AcceptOnMatch option value is set to true
, if it is false
then DENY is returned. If there is no match, NEUTRAL is returned.
Definition at line 158 of file filter.h.
virtual FilterResult log4cplus::spi::LogLevelMatchFilter::decide | ( | const InternalLoggingEvent & | event | ) | const [virtual] |
Return the decision of this filter.
Returns NEUTRAL if the LogLevelToMatch option is not set or if there is no match. Otherwise, if there is a match, then the returned decision is ACCEPT if the AcceptOnMatch property is set to true
. The returned decision is DENY if the AcceptOnMatch property is set to false
.
Implements log4cplus::spi::Filter.
bool log4cplus::spi::LogLevelMatchFilter::acceptOnMatch [private] |