| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public String | Returns: the value ornull if there is nonethe index n)Provided for compatibility with log4j. |
| public int | |
| public String | |
| public int | |
| public void |
| clear | back to summary |
|---|---|
| public void clear() Clear the thread's NDC stack. | |
| get | back to summary |
|---|---|
| public String get() Get the current NDC value.
| |
| get | back to summary |
|---|---|
| public String get(int n) Provided for compatibility with log4j. Get the NDC value that is
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() Get the current NDC stack depth.
| |
| pop | back to summary |
|---|---|
| public String pop() Pop the topmost value from the NDC stack and return it.
| |
| push | back to summary |
|---|---|
| public 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.
| |
| trimTo | back to summary |
|---|---|
| public void trimTo(int size) Trim the thread NDC stack down to no larger than the given size. Used to restore the stack to the depth returned
by a
| |