de.huxhorn.lilith.logback.classic
Class NDC
java.lang.Object
de.huxhorn.lilith.logback.classic.NDC
public class NDC
- extends java.lang.Object
|
Method Summary |
static void |
clear()
|
static de.huxhorn.lilith.data.logging.Message[] |
getContextStack()
Returns an array containing all messages of the stack. |
static int |
getDepth()
|
static boolean |
isEmpty()
|
static void |
pop()
Pops the last message from the stack. |
static void |
push(java.lang.String message)
|
static void |
push(java.lang.String messagePattern,
java.lang.Object[] arguments)
|
static void |
setMaximumDepth(int maximumDepth)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
push
public static void push(java.lang.String message)
push
public static void push(java.lang.String messagePattern,
java.lang.Object[] arguments)
pop
public static void pop()
- Pops the last message from the stack.
This method does not return the popped message to discourage it's usage in application logic.
getDepth
public static int getDepth()
setMaximumDepth
public static void setMaximumDepth(int maximumDepth)
isEmpty
public static boolean isEmpty()
clear
public static void clear()
getContextStack
public static de.huxhorn.lilith.data.logging.Message[] getContextStack()
- Returns an array containing all messages of the stack.
The messages from the NDC stack should not be used in application logic.
- Returns:
- an array containing all messages of the stack.