Log4Qt::NDC Class Reference

The class NDC implements a nested diagnostic context. More...

#include <ndc.h>

List of all members.

Static Public Member Functions

static void clear ()
static int depth ()
static NDCinstance ()
static QString pop ()
static void push (const QString &rMessage)
static void setMaxDepth (int maxDepth)
static QString peek ()

Related Functions

(Note that these are not member functions.)

QDebug operator<< (QDebug debug, const NDC &rNDC)


Detailed Description

The class NDC implements a nested diagnostic context.

The method remove() is not required. QThreadStorage cleans up on thread exit.

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

Member Function Documentation

static void Log4Qt::NDC::clear (  )  [static]

static int Log4Qt::NDC::depth (  )  [static]

static NDC* Log4Qt::NDC::instance (  )  [static]

Returns the NDC instance.

static QString Log4Qt::NDC::pop (  )  [static]

static void Log4Qt::NDC::push ( const QString &  rMessage  )  [static]

static void Log4Qt::NDC::setMaxDepth ( int  maxDepth  )  [static]

static QString Log4Qt::NDC::peek (  )  [static]


Friends And Related Function Documentation

QDebug operator<< ( QDebug  debug,
const NDC rNDC 
) [related]

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

NDC(thread:"main" peek:"i = 3" depth:4)

See also:
QDebug


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