18 #ifndef _LOG4CXX_FILTER_STRING_MATCH_FILTER_H 19 #define _LOG4CXX_FILTER_STRING_MATCH_FILTER_H 24 #pragma warning ( push ) 25 #pragma warning ( disable: 4251 ) 72 virtual
void setOption(const
LogString& option,
75 inline
void setStringToMatch(const
LogString& stringToMatch1)
77 this->stringToMatch.assign(stringToMatch1);
87 this->acceptOnMatch = acceptOnMatch1;
105 #if defined(_MSC_VER) 106 #pragma warning (pop) 109 #endif // _LOG4CXX_FILTER_STRING_MATCH_FILTER_H #define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
This is a very simple filter based on string matching.
Definition: stringmatchfilter.h:53
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141
LOG4CXX_PTR_DEF(AndFilter)
FilterDecision
Definition: filter.h:87
const LogString & getStringToMatch() const
Definition: stringmatchfilter.h:80
void setAcceptOnMatch(bool acceptOnMatch1)
Definition: stringmatchfilter.h:85
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
spi::Filter BASE_CLASS
Definition: stringmatchfilter.h:60
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66
bool getAcceptOnMatch() const
Definition: stringmatchfilter.h:90
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:68