log4cplus
1.1.0
|
#include <mdc.h>
Public Member Functions | |
void | clear () |
Clear any nested diagnostic information if any. | |
void | put (tstring const &key, tstring const &value) |
bool | get (tstring *value, tstring const &key) const |
void | remove (tstring const &key) |
MappedDiagnosticContextMap const & | getContext () const |
MDC () | |
virtual | ~MDC () |
virtual log4cplus::MDC::~MDC | ( | ) | [virtual] |
void log4cplus::MDC::clear | ( | ) |
Clear any nested diagnostic information if any.
This method is useful in cases where the same thread can be potentially used over and over in different unrelated contexts.
bool log4cplus::MDC::get | ( | tstring * | value, |
tstring const & | key | ||
) | const |
MappedDiagnosticContextMap const& log4cplus::MDC::getContext | ( | ) | const |
Referenced by log4cplus::spi::InternalLoggingEvent::getMDCCopy().
void log4cplus::MDC::put | ( | tstring const & | key, |
tstring const & | value | ||
) |
void log4cplus::MDC::remove | ( | tstring const & | key | ) |