| Modifier and Type | Field and Description |
|---|---|
| private static final NDCProvider |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| pack-priv static NDCProvider | |
| public static String | |
| public static String | Returns: the value ornull if there is nonethe index n)Provided for compatibility with log4j. |
| pack-priv static NDCProvider | |
| public static int | |
| pack-priv static NDCProvider | |
| public static String | |
| public static int | |
| public static void |
| ndcProvider | back to summary |
|---|---|
| private static final NDCProvider ndcProvider | |
| NDC | back to summary |
|---|---|
| private NDC() | |
| clear | back to summary |
|---|---|
| public static void clear() Clear the thread's NDC stack. | |
| doGetDefaultNDCProvider | back to summary |
|---|---|
| pack-priv static NDCProvider doGetDefaultNDCProvider() | |
| get | back to summary |
|---|---|
| public static String get() Get the current NDC value.
| |
| get | back to summary |
|---|---|
| public static String get(int n) Provided for compatibility with log4j. Get the NDC value that is
| |
| getDefaultNDCProvider | back to summary |
|---|---|
| pack-priv static NDCProvider getDefaultNDCProvider() | |
| getDepth | back to summary |
|---|---|
| public static int getDepth() Get the current NDC stack depth.
| |
| getNDCProvider | back to summary |
|---|---|
| pack-priv static NDCProvider getNDCProvider() | |
| pop | back to summary |
|---|---|
| public static String pop() Pop the topmost value from the NDC stack and return it.
| |
| push | back to summary |
|---|---|
| public 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.
| |
| trimTo | back to summary |
|---|---|
| public static 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
| |