18 #ifndef _LOG4CXX_FILTER_LOGGER_MATCH_FILTER_H 19 #define _LOG4CXX_FILTER_LOGGER_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> 55 LogString loggerToMatch;
60 BEGIN_LOG4CXX_CAST_MAP()
62 LOG4CXX_CAST_ENTRY_CHAIN(BASE_CLASS)
63 END_LOG4CXX_CAST_MAP()
70 virtual void setOption(
const LogString& option,
71 const LogString& value);
73 void setLoggerToMatch(
const LogString& levelToMatch);
75 LogString getLoggerToMatch()
const;
77 inline void setAcceptOnMatch(
bool acceptOnMatch1)
79 this->acceptOnMatch = acceptOnMatch1;
82 inline bool getAcceptOnMatch()
const 104 #if defined(_MSC_VER) 105 #pragma warning ( pop ) 108 #endif // _LOG4CXX_FILTER_LOGGER_MATCH_FILTER_H This is a very simple filter based on logger name matching.
Definition: loggermatchfilter.h:51
FilterDecision
Definition: filter.h:91
Definition: appender.h:33
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:69