Log4Qt::Appender Class Reference

The class Appender is the base class for all Appenders. More...

#include <appender.h>

Inheritance diagram for Log4Qt::Appender:

Log4Qt::LogObject Log4Qt::AppenderSkeleton Log4Qt::DebugAppender Log4Qt::ListAppender Log4Qt::NullAppender Log4Qt::WriterAppender Log4Qt::ConsoleAppender Log4Qt::FileAppender Log4Qt::DailyRollingFileAppender Log4Qt::RollingFileAppender

List of all members.

Public Member Functions

 Appender (QObject *pParent=0)
virtual ~Appender ()
virtual Filterfilter () const =0
virtual QString name () const =0
virtual Layoutlayout () const =0
virtual bool requiresLayout () const =0
virtual void setLayout (Layout *pLayout)=0
virtual void setName (const QString &rName)=0
virtual void addFilter (Filter *pFilter)=0
virtual void clearFilters ()=0
virtual void close ()=0
virtual void doAppend (const LoggingEvent &rEvent)=0

Properties

Layout layout
QString name
bool requiresLayout


Detailed Description

The class Appender is the base class for all Appenders.

To allow the whole hirarchy to be an ascendant of QObject Appender is not an interface.

Note:
All the functions declared in this class are thread-safe.

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


Constructor & Destructor Documentation

Log4Qt::Appender::Appender ( QObject *  pParent = 0  )  [inline]

Log4Qt::Appender::~Appender (  )  [inline, virtual]


Member Function Documentation

virtual Filter* Log4Qt::Appender::filter (  )  const [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual QString Log4Qt::Appender::name (  )  const [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual Layout* Log4Qt::Appender::layout (  )  const [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual bool Log4Qt::Appender::requiresLayout (  )  const [pure virtual]

virtual void Log4Qt::Appender::setLayout ( Layout pLayout  )  [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual void Log4Qt::Appender::setName ( const QString &  rName  )  [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual void Log4Qt::Appender::addFilter ( Filter pFilter  )  [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual void Log4Qt::Appender::clearFilters (  )  [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.

virtual void Log4Qt::Appender::close (  )  [pure virtual]

virtual void Log4Qt::Appender::doAppend ( const LoggingEvent rEvent  )  [pure virtual]

Implemented in Log4Qt::AppenderSkeleton.


Property Documentation

Layout Log4Qt::Appender::layout [read, write]

The property holds the Layout used by the Appender.

See also:
layout(), setLayout()

QString Log4Qt::Appender::name [read, write]

The property holds the name of the Appender.

See also:
name(), setName()

bool Log4Qt::Appender::requiresLayout [read]

The property holds if the Appender requires a Layout or not.

See also:
requiresLayout(), setRequiresLayout()


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

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