org.apache.log4j
Class NDC

java.lang.Object
  extended by org.apache.log4j.NDC

public class NDC
extends java.lang.Object

A bare-bones implementation of log4j's NDC which compiles and prevents run time exceptions.

Since:
SLF4J 1.6.0

Constructor Summary
NDC()
           
 
Method Summary
static void clear()
           
static java.util.Stack cloneStack()
           
static java.lang.String get()
           
static int getDepth()
           
static void inherit(java.util.Stack stack)
           
static java.lang.String peek()
           
static java.lang.String pop()
           
static void push(java.lang.String message)
           
static void remove()
           
static void setMaxDepth(int maxDepth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDC

public NDC()
Method Detail

clear

public static void clear()

cloneStack

public static java.util.Stack cloneStack()

inherit

public static void inherit(java.util.Stack stack)

get

public static java.lang.String get()

getDepth

public static int getDepth()

pop

public static java.lang.String pop()

peek

public static java.lang.String peek()

push

public static void push(java.lang.String message)

remove

public static void remove()

setMaxDepth

public static void setMaxDepth(int maxDepth)


Copyright © 2005-2011 QOS.ch. All Rights Reserved.