Log4Qt::DebugAppender Class Reference

The class DebugAppender appends logging events to the platform specific debug output. More...

#include <debugappender.h>

Inheritance diagram for Log4Qt::DebugAppender:

Log4Qt::AppenderSkeleton Log4Qt::Appender Log4Qt::LogObject

List of all members.

Public Member Functions

 DebugAppender (QObject *pParent=0)
 DebugAppender (Layout *pLayout, QObject *pParent=0)
virtual bool requiresLayout () const

Protected Member Functions

virtual void append (const LoggingEvent &rEvent)
virtual QDebug debug (QDebug &rDebug) const


Detailed Description

The class DebugAppender appends logging events to the platform specific debug output.

A DebugAppender appends to the Debugger on Windows and to stderr on all other systems.

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::DebugAppender::DebugAppender ( QObject *  pParent = 0  )  [inline]

Creates a DebugAppender.

Log4Qt::DebugAppender::DebugAppender ( Layout pLayout,
QObject *  pParent = 0 
)

Creates a DebugAppender with the specified layout pLayout


Member Function Documentation

virtual bool Log4Qt::DebugAppender::requiresLayout (  )  const [virtual]

The DebugAppended requires a layout. The function returns true.

See also:
setLayout()

Implements Log4Qt::Appender.

virtual void Log4Qt::DebugAppender::append ( const LoggingEvent rEvent  )  [protected, virtual]

Appends the specified logging event rEvent to the debug output. The output is formatted using the appender's layout.

The method is called by the AppenderSkeleton::doAppend() after it the entry conditions have been tested and it has been found that the logging event needs to be appended.

See also:
setLayout(), AppenderSkeleton::doAppend(), checkEntryConditions()

Implements Log4Qt::AppenderSkeleton.

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

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

DebugAppender(name:"DA" filter:0x3bee6b8 isactive:true isclosed:false layout:"SL" referencecount:1 threshold:"NULL")

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

Implements Log4Qt::LogObject.


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