Package org.apache.log4j
Class NDC
- java.lang.Object
-
- org.apache.log4j.NDC
-
public class NDC extends Object
A log4j's NDC implemented in terms of SLF4J MDC primitives.- Since:
- SLF4J 1.6.0
-
-
Constructor Summary
Constructors Constructor Description NDC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclear()static StackcloneStack()static Stringget()static intgetDepth()static voidinherit(Stack stack)static Stringpeek()static Stringpop()static voidpush(String message)static voidremove()static voidsetMaxDepth(int maxDepth)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
clear
public static void clear()
-
cloneStack
public static Stack cloneStack()
-
inherit
public static void inherit(Stack stack)
-
get
public static String get()
-
getDepth
public static int getDepth()
-
pop
public static String pop()
-
peek
public static String peek()
-
push
public static void push(String message)
-
remove
public static void remove()
-
setMaxDepth
public static void setMaxDepth(int maxDepth)
-
-