org.apache.log4j
Class Logger

java.lang.Object
  extended by org.apache.log4j.Category
      extended by org.apache.log4j.Logger

public class Logger
extends Category

This class is a minimal implementation of the original org.apache.log4j.Logger class (as found in log4j 1.2) by delegation of all calls to a org.slf4j.Logger.Logger instance.

Author:
Ceki Gülcü

Field Summary
 
Fields inherited from class org.apache.log4j.Category
slf4jLogger
 
Method Summary
static Logger getLogger(Class clazz)
           
static Logger getLogger(String name)
           
static Logger getRootLogger()
          Does the obvious.
 boolean isTraceEnabled()
          Delegates to Logger.isTraceEnabled() method of SLF4J.
 void trace(Object message)
          Delegates to Logger.trace(String) method in SLF4J.
 void trace(Object message, Throwable t)
          Delegates to Logger.trace(String,Throwable) method in SLF4J.
 
Methods inherited from class org.apache.log4j.Category
convertToString, debug, debug, error, error, fatal, fatal, getEffectiveLevel, getInstance, getInstance, getLevel, getName, getPriority, info, info, isDebugEnabled, isEnabledFor, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static Logger getLogger(String name)

getLogger

public static Logger getLogger(Class clazz)

getRootLogger

public static Logger getRootLogger()
Does the obvious.

Returns:

isTraceEnabled

public boolean isTraceEnabled()
Delegates to Logger.isTraceEnabled() method of SLF4J.


trace

public void trace(Object message)
Delegates to Logger.trace(String) method in SLF4J.


trace

public void trace(Object message,
                  Throwable t)
Delegates to Logger.trace(String,Throwable) method in SLF4J.



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