log4cplus
2.0.7
|
This is a very simple filter based on string matching. More...
#include <filter.h>
Public Member Functions | |
StringMatchFilter () | |
StringMatchFilter (const log4cplus::helpers::Properties &p) | |
virtual FilterResult | decide (const InternalLoggingEvent &event) const |
Returns NEUTRAL is there is no string match. More... | |
![]() | |
Filter () | |
virtual | ~Filter () |
void | appendFilter (FilterPtr filter) |
Appends filter to the end of this filter chain. More... | |
![]() | |
void | addReference () const LOG4CPLUS_NOEXCEPT |
void | removeReference () const |
Additional Inherited Members | |
![]() | |
FilterPtr | next |
Points to the next filter in the filter chain. More... | |
![]() | |
thread::Mutex | access_mutex |
![]() | |
SharedObject () | |
SharedObject (const SharedObject &) | |
SharedObject (SharedObject &&) | |
virtual | ~SharedObject () |
SharedObject & | operator= (const SharedObject &) LOG4CPLUS_NOEXCEPT |
SharedObject & | operator= (SharedObject &&) LOG4CPLUS_NOEXCEPT |
This is a very simple filter based on string matching.
The filter admits two options StringToMatch and AcceptOnMatch. If there is a match between the value of the StringToMatch option and the message of the Logging event, then the decide method returns ACCEPT if the AcceptOnMatch option value is true, if it is false then DENY is returned. If there is no match, NEUTRAL is returned.
log4cplus::spi::StringMatchFilter::StringMatchFilter | ( | ) |
log4cplus::spi::StringMatchFilter::StringMatchFilter | ( | const log4cplus::helpers::Properties & | p | ) |
|
virtual |
Returns NEUTRAL is there is no string match.
Implements log4cplus::spi::Filter.