l4snd::NDC Class Reference

NDC class. More...

List of all members.

Public Member Functions

 NDC ()
 Construct NDC.
virtual ~NDC ()
 Provide virtual destructor.
void push (const std::string &ndc)
 Append new NDC.
void pop ()
 Pop the most recent NDC.
std::string get () const
 Gets all stored NDCs.
unsigned numNDCs () const
 Gets the number of stored NDCs.
void clear ()
 Clears all stored NDCs.


Detailed Description

NDC class.

Provides Nested Diagnostic Context, or NDC. In short, it is an instrument for distinguishing interleaved log output from different sources. Log output is typically interleaved when a server handles multiple clients near-simultaneously.

Definition at line 47 of file ndc.h.


Member Function Documentation

void l4snd::NDC::push ( const std::string &  ndc  ) 

Append new NDC.

Parameters:
ndc NDC entry

Definition at line 51 of file ndc.cpp.

std::string l4snd::NDC::get (  )  const

Gets all stored NDCs.

Returns:
all current NDC fragments

Definition at line 78 of file ndc.cpp.

unsigned l4snd::NDC::numNDCs (  )  const

Gets the number of stored NDCs.

Returns:
number of NDCs

Definition at line 72 of file ndc.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Nov 24 14:41:26 2007 for log4sendpp by  doxygen 1.5.3