|
JBoss Log Manager 1.4.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logmanager.NDC
public final class NDC
Nested diagnostic context. This is basically a thread-local stack that holds a string which can be included in a log message.
| Method Summary | |
|---|---|
static void |
clear()
Clear the thread's NDC stack. |
static String |
get()
Get the current NDC value. |
static String |
get(int n)
Provided for compatibility with log4j. |
static int |
getDepth()
Get the current NDC stack depth. |
static String |
pop()
Pop the topmost value from the NDC stack and return it. |
static int |
push(String context)
Push a value on to the NDC stack, returning the new stack depth which should later be used to restore the stack. |
static void |
trimTo(int size)
Trim the thread NDC stack down to no larger than the given size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int push(String context)
context - the new value
public static String pop()
public static void clear()
public static void trimTo(int size)
push().
size - the new sizepublic static int getDepth()
public static String get()
"" if there is nonepublic static String get(int n)
n entries from the bottom.
n - the index
null if there is none
|
JBoss Log Manager 1.4.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||