This class contains all the thread-specific data in use by log4cxx.
More...
#include <threadspecificdata.h>
This class contains all the thread-specific data in use by log4cxx.
◆ NamePairPtr
◆ ThreadSpecificData() [1/2]
log4cxx::helpers::ThreadSpecificData::ThreadSpecificData |
( |
| ) |
|
◆ ThreadSpecificData() [2/2]
◆ ~ThreadSpecificData()
log4cxx::helpers::ThreadSpecificData::~ThreadSpecificData |
( |
| ) |
|
◆ getCurrentData()
Gets current thread specific data.
- Returns
- a pointer that is non-null prior to application exit.
◆ getMap()
MDC::Map & log4cxx::helpers::ThreadSpecificData::getMap |
( |
| ) |
|
The mapped diagnostic context of the current thread.
◆ getNames()
A reference counted pointer to the names of the current thread.
String references will remain valid for the lifetime of this pointer (i.e. even after thread termination).
◆ getStack()
NDC::Stack & log4cxx::helpers::ThreadSpecificData::getStack |
( |
| ) |
|
The nested diagnostic context of the current thread.
◆ getStringStream()
static std::basic_ostringstream< T > & log4cxx::helpers::ThreadSpecificData::getStringStream |
( |
| ) |
|
|
inlinestatic |
A character outpur stream only assessable to the current thread.
◆ inherit()
Use stack
as the nested diagnostic context of the current thread.
◆ push()
Add val
to the nested diagnostic context of the current thread.
◆ put()
Add the key
val
pair to the mapped diagnostic context of the current thread.
◆ recycle()
void log4cxx::helpers::ThreadSpecificData::recycle |
( |
| ) |
|
Remove current thread data from APR if the diagnostic context is empty.
The documentation for this class was generated from the following file: