18 #ifndef _LOG4CXX_FILTER_LEVEL_MATCH_FILTER_H 19 #define _LOG4CXX_FILTER_LEVEL_MATCH_FILTER_H 22 #pragma warning ( push ) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 27 #include <log4cxx/spi/filter.h> 28 #include <log4cxx/level.h> 58 BEGIN_LOG4CXX_CAST_MAP()
60 LOG4CXX_CAST_ENTRY_CHAIN(BASE_CLASS)
61 END_LOG4CXX_CAST_MAP()
68 virtual void setOption(
const LogString& option,
69 const LogString& value);
71 void setLevelToMatch(
const LogString& levelToMatch);
73 LogString getLevelToMatch()
const;
75 inline void setAcceptOnMatch(
bool acceptOnMatch1)
77 this->acceptOnMatch = acceptOnMatch1;
80 inline bool getAcceptOnMatch()
const 102 #if defined(_MSC_VER) 103 #pragma warning ( pop ) 106 #endif // _LOG4CXX_FILTER_LEVEL_MATCH_FILTER_H FilterDecision
Definition: filter.h:91
This is a very simple filter based on level matching.
Definition: levelmatchfilter.h:49
Definition: appender.h:33
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:69