 |
log4cplus
2.0.5
|
Go to the documentation of this file.
25 #ifndef LOG4CPLUS_SPI_FILTER_HEADER_
26 #define LOG4CPLUS_SPI_FILTER_HEADER_
30 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
66 class InternalLoggingEvent;
virtual FilterResult decide(const InternalLoggingEvent &) const
Returns result returned by function.
virtual FilterResult decide(const InternalLoggingEvent &event) const =0
If the decision is DENY, then the event will be dropped.
virtual FilterResult decide(const InternalLoggingEvent &event) const
Returns NEUTRAL is there is no string match.
std::basic_string< tchar > tstring
virtual FilterResult decide(const InternalLoggingEvent &event) const
Returns NEUTRAL is there is no string match.
LogLevelMatchFilter(const log4cplus::helpers::Properties &p)
This is a very simple filter based on LogLevel matching.
virtual FilterResult decide(const InternalLoggingEvent &event) const
Always returns the DENY regardless of the InternalLoggingEvent parameter.
helpers::SharedObjectPtr< Filter > FilterPtr
This header defines the LogLevel type.
virtual FilterResult decide(const InternalLoggingEvent &event) const
Return the decision of this filter.
FilterPtr next
Points to the next filter in the filter chain.
void appendFilter(FilterPtr filter)
Appends filter to the end of this filter chain.
@ NEUTRAL
This filter is neutral with respect to the log event; the remaining filters, if if any,...
This is a simple filter based on the key/value pair stored in MDC.
LogLevelRangeFilter(const log4cplus::helpers::Properties &p)
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
NDCMatchFilter(const log4cplus::helpers::Properties &p)
virtual FilterResult decide(const InternalLoggingEvent &event) const
Return the decision of this filter.
Users should extend this class to implement customized logging event filtering.
This filter drops all logging events.
The internal representation of logging events.
std::function< FilterResult(const InternalLoggingEvent &)> Function
@ ACCEPT
The log event must be logged immediately without consulting with the remaining filters,...
LOG4CPLUS_EXPORT FilterResult checkFilter(const Filter *filter, const InternalLoggingEvent &event)
This method is used to filter an InternalLoggingEvent.
MDCMatchFilter(const log4cplus::helpers::Properties &p)
This is a very simple filter based on string matching.
@ DENY
The log event must be dropped immediately without consulting with the remaining filters,...
virtual FilterResult decide(const InternalLoggingEvent &event) const
Returns NEUTRAL is there is no string match.
#define LOG4CPLUS_PRIVATE
This filter allows using std::function<FilterResult(const InternalLoggingEvent &)>.
This is a very simple filter based on LogLevel matching, which can be used to reject messages with Lo...
This is a simple filter based on the string returned by event.getNDC().
StringMatchFilter(const log4cplus::helpers::Properties &p)
DenyAllFilter(const log4cplus::helpers::Properties &)