18 #ifndef _LOG4CXX_FILTER_LEVEL_RANGE_FILTER_H 19 #define _LOG4CXX_FILTER_LEVEL_RANGE_FILTER_H 21 #include <log4cxx/spi/filter.h> 22 #include <log4cxx/level.h> 71 BEGIN_LOG4CXX_CAST_MAP()
73 LOG4CXX_CAST_ENTRY_CHAIN(BASE_CLASS)
74 END_LOG4CXX_CAST_MAP()
81 virtual void setOption(
const LogString& option,
82 const LogString& value);
89 this->levelMin = levelMin1;
105 this->levelMax = levelMax1;
121 this->acceptOnMatch = acceptOnMatch1;
129 return acceptOnMatch;
149 #endif // _LOG4CXX_FILTER_LEVEL_RANGE_FILTER_H void setLevelMax(const LevelPtr &levelMax1)
Set the LevelMax option.
Definition: levelrangefilter.h:103
void setAcceptOnMatch(bool acceptOnMatch1)
Set the AcceptOnMatch option.
Definition: levelrangefilter.h:119
FilterDecision
Definition: filter.h:91
void setLevelMin(const LevelPtr &levelMin1)
Set the LevelMin option.
Definition: levelrangefilter.h:87
const LevelPtr & getLevelMax() const
Get the value of the LevelMax option.
Definition: levelrangefilter.h:111
This is a very simple filter based on level matching, which can be used to reject messages with prior...
Definition: levelrangefilter.h:57
Definition: appender.h:33
bool getAcceptOnMatch() const
Get the value of the AcceptOnMatch option.
Definition: levelrangefilter.h:127
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:69
const LevelPtr & getLevelMin() const
Get the value of the LevelMin option.
Definition: levelrangefilter.h:95