#include <filter.h>
Inheritance diagram for log4cplus::spi::LogLevelMatchFilter:
Public Member Functions | |
LogLevelMatchFilter () | |
LogLevelMatchFilter (const log4cplus::helpers::Properties &p) | |
virtual FilterResult | decide (const InternalLoggingEvent &event) const |
Return the decision of this filter. |
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 LoggingEvent, 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 146 of file filter.h.
|
|
|
|
|
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 Implements log4cplus::spi::Filter. |