org.apache.tsik.common
Class Log4jLogger

java.lang.Object
  extended byorg.apache.tsik.common.Log4jLogger
All Implemented Interfaces:
Logger

public class Log4jLogger
extends Object
implements Logger

A logger using ASF Log4J. You will need log4j.jar in the classpath for this logger to work.


Method Summary
 void debug(Object message)
          Debugs the message.
 void error(Object message)
          Errors the message.
 void fatal(Object message)
          Fatals the message.
static Logger getLogger(Class c)
          Returns a Log4J logger.
 void info(Object message)
          Infos the message.
 boolean isDebugEnabled()
          Returns wether the logger is debug enabled.
 void warn(Object message)
          Warns the message.
 
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(Class c)
Returns a Log4J logger.

Parameters:
c - the class to look up logger for.
Returns:
the logger.

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: Logger
Returns wether the logger is debug enabled.

Specified by:
isDebugEnabled in interface Logger
Returns:
true if the logger is debug enabled; false otherwise.

debug

public void debug(Object message)
Description copied from interface: Logger
Debugs the message.

Specified by:
debug in interface Logger
Parameters:
message - the message to emit.

info

public void info(Object message)
Description copied from interface: Logger
Infos the message.

Specified by:
info in interface Logger
Parameters:
message - the message to emit.

warn

public void warn(Object message)
Description copied from interface: Logger
Warns the message.

Specified by:
warn in interface Logger
Parameters:
message - the message to emit.

error

public void error(Object message)
Description copied from interface: Logger
Errors the message.

Specified by:
error in interface Logger
Parameters:
message - the message to emit.

fatal

public void fatal(Object message)
Description copied from interface: Logger
Fatals the message.

Specified by:
fatal in interface Logger
Parameters:
message - the message to emit.