10#ifndef _LOG4SHIB_NDC_HH
11#define _LOG4SHIB_NDC_HH
112 static const std::string&
get();
132 static std::string
pop();
142 static void push(
const std::string& message);
164 virtual const std::string&
_get()
const;
167 virtual std::string
_pop();
168 virtual void _push(
const std::string& message);
#define LOG4SHIB_EXPORT
Definition Export.hh:11
static void clear()
Clear any nested disgnostic information if any.
Definition NDC.cpp:31
virtual ContextStack * _cloneStack()
Definition NDC.cpp:84
static NDC & getNDC()
Return the NDC for the current thread.
Definition NDC.cpp:63
static const std::string & get()
Get the current diagnostic context string.
Definition NDC.cpp:39
virtual void _setMaxDepth(int maxDepth)
Definition NDC.cpp:116
std::vector< DiagnosticContext > ContextStack
Definition NDC.hh:81
static void push(const std::string &message)
Push new diagnostic context information for the current thread.
Definition NDC.cpp:55
static ContextStack * cloneStack()
Clone the diagnostic context for the current thread.
Definition NDC.cpp:35
static int getDepth()
Get the current nesting depth of this diagnostic context.
Definition NDC.cpp:43
static std::string pop()
Clients should call this method before leaving a diagnostic context.
Definition NDC.cpp:51
NDC()
Definition NDC.cpp:74
virtual const std::string & _get() const
Definition NDC.cpp:88
static void setMaxDepth(int maxDepth)
Set the maximum nesting depth for the current NDC.
Definition NDC.cpp:59
virtual void _inherit(ContextStack *stack)
Definition NDC.cpp:98
virtual int _getDepth() const
Definition NDC.cpp:94
virtual std::string _pop()
Definition NDC.cpp:102
virtual void _push(const std::string &message)
Definition NDC.cpp:108
virtual void _clear()
Definition NDC.cpp:80
ContextStack _stack
Definition NDC.hh:171
static void inherit(ContextStack *stack)
Definition NDC.cpp:47
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
std::string fullMessage
Definition NDC.hh:78
std::string message
Definition NDC.hh:77
DiagnosticContext(const std::string &message)
Definition NDC.cpp:16