Log4Qt::StringMatchFilter Class Reference

The class StringMatchFilter allows logging events with a specified level. More...

#include <stringmatchfilter.h>

Inheritance diagram for Log4Qt::StringMatchFilter:

Log4Qt::Filter Log4Qt::LogObject

List of all members.

Public Member Functions

 StringMatchFilter (QObject *pParent=0)
bool acceptOnMatch () const
QString stringToMatch () const
void setAcceptOnMatch (bool accept)
void setStringToMatch (const QString &rString)
virtual Decision decide (const LoggingEvent &rEvent) const

Protected Member Functions

virtual QDebug debug (QDebug &rDebug) const

Properties

bool acceptOnMatch
QString stringToMatch


Detailed Description

The class StringMatchFilter allows logging events with a specified level.

Note:
The ownership and lifetime of objects of this class are managed. See Object ownership for more details.

Constructor & Destructor Documentation

Log4Qt::StringMatchFilter::StringMatchFilter ( QObject *  pParent = 0  ) 


Member Function Documentation

bool Log4Qt::StringMatchFilter::acceptOnMatch (  )  const

QString Log4Qt::StringMatchFilter::stringToMatch (  )  const

void Log4Qt::StringMatchFilter::setAcceptOnMatch ( bool  accept  )  [inline]

void Log4Qt::StringMatchFilter::setStringToMatch ( const QString &  rString  )  [inline]

virtual Decision Log4Qt::StringMatchFilter::decide ( const LoggingEvent rEvent  )  const [virtual]

Implements Log4Qt::Filter.

virtual QDebug Log4Qt::StringMatchFilter::debug ( QDebug &  rDebug  )  const [protected, virtual]

Writes all object member variables to the given debug stream rDebug and returns the stream.

StringMatchFilter(acceptonmatch:true referencecount:1 stringtomatch:"LDAP_STRONG_AUTH_REQUIRED" next:Log4Qt::LevelMatchFilter(0x3bdd960) )

See also:
QDebug, operator<<(QDebug debug, const LogObject &rLogObject)

Implements Log4Qt::LogObject.


Property Documentation

bool Log4Qt::StringMatchFilter::acceptOnMatch [inline, read, write]

The property holds if an event is accpeted on a match.

The default is true.

See also:
acceptOnMatch(), acceptOnMatch()

QString Log4Qt::StringMatchFilter::stringToMatch [inline, read, write]

The property holds the string to match for this filter.

See also:
stringToMatch(), setStringToMatch()


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

Generated on Sun Mar 1 16:40:46 2009 for Log4Qt by  doxygen 1.5.6