log4cplus::spi::StringMatchFilter Class Reference

This is a very simple filter based on string matching. More...

Inheritance diagram for log4cplus::spi::StringMatchFilter:

log4cplus::spi::Filter log4cplus::helpers::SharedObject List of all members.

Public Member Functions

 StringMatchFilter (const log4cplus::helpers::Properties &p, log4cplus::tstring &error)
virtual FilterResult decide (const InternalLoggingEvent &event) const
 Returns NEUTRAL is there is no string match.

Private Member Functions

void init ()

Private Attributes

bool acceptOnMatch
 Do we return ACCEPT when a match occurs.
log4cplus::tstring stringToMatch

Detailed Description

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.

Definition at line 247 of file filter.h.


Member Data Documentation

bool log4cplus::spi::StringMatchFilter::acceptOnMatch [private]

Do we return ACCEPT when a match occurs.

Default is true.

Definition at line 264 of file filter.h.


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1