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. |
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.
void l4snd::NDC::push | ( | const std::string & | ndc | ) |
std::string l4snd::NDC::get | ( | ) | const |
unsigned l4snd::NDC::numNDCs | ( | ) | const |