org.apache.log4j

Class 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ü

Method Summary
static LoggergetLogger(String name)
static LoggergetLogger(Class clazz)
static LoggergetRootLogger()
Does the obvious.
booleanisTraceEnabled()
Delegates to Logger method of SLF4J.
voidtrace(Object message)
Delegates to trace method in SLF4J.
voidtrace(Object message, Throwable t)
Delegates to trace method in SLF4J.

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 method of SLF4J.

trace

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

trace

public void trace(Object message, Throwable t)
Delegates to trace method in SLF4J.
Copyright © 2005-2009 QOS.ch. All Rights Reserved.