Public Types | |
|
typedef std::pair < std::string, std::string > | Pair |
| Helper definition for a name/value relation. | |
Public Member Functions | |
| void | add (const std::string &name, const std::string &value) |
| Append new MDC. | |
| void | remove (const std::string &name) |
| Remove a MDC. | |
| std::vector< Pair > | get () const |
| Gets all stored MDCs. | |
| unsigned | numMDCs () const |
| Gets the number of stored MDCs. | |
| void | clear () |
| Clears all stored MDCs. | |
| virtual | ~MDC () |
| Provide virtual destructor. | |
It provides mapped diagnostic contexts. A Mapped Diagnostic Context, or MDC in short, 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 mdc.h.
| void l4snd::MDC::add | ( | const std::string & | name, | |
| const std::string & | value | |||
| ) |
| void l4snd::MDC::remove | ( | const std::string & | name | ) |
| std::vector< MDC::Pair > l4snd::MDC::get | ( | ) | const |
| unsigned l4snd::MDC::numMDCs | ( | ) | const |
1.5.3