10#ifndef _LOG4CPP_NDC_HH
11#define _LOG4CPP_NDC_HH
74 static bool isUsedNDC;
75 static const std::string emptyString;
117 static const std::string&
get();
137 static std::string
pop();
147 static void push(
const std::string& message);
169 virtual const std::string&
_get()
const;
172 virtual std::string
_pop();
173 virtual void _push(
const std::string& message);
#define LOG4CPP_EXPORT
Definition Export.hh:26
ContextStack _stack
Definition NDC.hh:176
virtual ContextStack * _cloneStack()
Definition NDC.cpp:84
virtual std::string _pop()
Definition NDC.cpp:102
static std::string pop()
Clients should call this method before leaving a diagnostic context.
Definition NDC.cpp:51
NDC()
Definition NDC.cpp:76
static void setMaxDepth(int maxDepth)
Set the maximum nesting depth for the current NDC.
Definition NDC.cpp:61
static size_t getDepth()
Get the current nesting depth of this diagnostic context.
Definition NDC.cpp:43
static const std::string & get()
Get the current diagnostic context string.
Definition NDC.cpp:36
virtual void _clear()
Definition NDC.cpp:80
virtual size_t _getDepth() const
Definition NDC.cpp:94
static NDC & getNDC()
Return the NDC for the current thread.
Definition NDC.cpp:65
virtual void _setMaxDepth(int maxDepth)
Definition NDC.cpp:116
static void clear()
Clear any nested disgnostic information if any.
Definition NDC.cpp:28
static void push(const std::string &message)
Push new diagnostic context information for the current thread.
Definition NDC.cpp:55
virtual void _inherit(ContextStack *stack)
Definition NDC.cpp:98
std::vector< DiagnosticContext > ContextStack
Definition NDC.hh:86
virtual void _push(const std::string &message)
Definition NDC.cpp:108
static void inherit(ContextStack *stack)
Definition NDC.cpp:47
static ContextStack * cloneStack()
Clone the diagnostic context for the current thread.
Definition NDC.cpp:32
virtual const std::string & _get() const
Definition NDC.cpp:88
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
DiagnosticContext(const std::string &message)
Definition NDC.cpp:16
std::string fullMessage
Definition NDC.hh:83
std::string message
Definition NDC.hh:82