JBoss Logging Log4j 2.2.0.CR1

org.jboss.logging.log4j
Class Log4jNDCProvider

java.lang.Object
  extended by org.jboss.logging.log4j.Log4jNDCProvider
All Implemented Interfaces:
org.jboss.logging.NDCProvider

public class Log4jNDCProvider
extends Object
implements org.jboss.logging.NDCProvider

Log4j implementation of NDCProvider, delegates to log4j NDC.

Author:
Jason T. Greene

Constructor Summary
Log4jNDCProvider()
           
 
Method Summary
 void clear()
           
 String get()
           
 int getDepth()
           
 String peek()
           
 String pop()
           
 void push(String message)
           
 void setMaxDepth(int maxDepth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jNDCProvider

public Log4jNDCProvider()
Method Detail

clear

public void clear()
Specified by:
clear in interface org.jboss.logging.NDCProvider

get

public String get()
Specified by:
get in interface org.jboss.logging.NDCProvider

getDepth

public int getDepth()
Specified by:
getDepth in interface org.jboss.logging.NDCProvider

peek

public String peek()
Specified by:
peek in interface org.jboss.logging.NDCProvider

pop

public String pop()
Specified by:
pop in interface org.jboss.logging.NDCProvider

push

public void push(String message)
Specified by:
push in interface org.jboss.logging.NDCProvider

setMaxDepth

public void setMaxDepth(int maxDepth)
Specified by:
setMaxDepth in interface org.jboss.logging.NDCProvider

JBoss Logging Log4j 2.2.0.CR1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.