net.lessy.util.logging
Class Logger

java.lang.Object
  extended by net.lessy.util.logging.Logger

public class Logger
extends Object

Author:
Hans Lesmeister

Constructor Summary
Logger(Class clazz)
           
 
Method Summary
 void debug(Object... objects)
          Convenience Debug-Method that takes a variable number of parameters.
 void debug(Object o)
          All following methods are delegating directly to the Commons-Logger
 void debug(Object o, Throwable throwable)
           
 void error(Object o)
           
 void error(Object o, Throwable throwable)
           
 void fatal(Object o)
           
 void fatal(Object o, Throwable throwable)
           
static Logger getLogger(Class clazz)
           
 void info(Object o)
           
 void info(Object o, Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(Object o)
           
 void trace(Object o, Throwable throwable)
           
 void warn(Object o)
           
 void warn(Object o, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(Class clazz)
Method Detail

getLogger

public static Logger getLogger(Class clazz)

debug

public void debug(Object... objects)
Convenience Debug-Method that takes a variable number of parameters. The parameters are concatenated and then passed to the regular debug()-Method but only if isDebugEnabled() returns true. This prevents expensive expressions to evaluate unnecesary before being passed to the logger.

Parameters:
objects - The objects to log

debug

public void debug(Object o)
All following methods are delegating directly to the Commons-Logger


debug

public void debug(Object o,
                  Throwable throwable)

error

public void error(Object o)

error

public void error(Object o,
                  Throwable throwable)

fatal

public void fatal(Object o)

fatal

public void fatal(Object o,
                  Throwable throwable)

info

public void info(Object o)

info

public void info(Object o,
                 Throwable throwable)

isDebugEnabled

public boolean isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()

isInfoEnabled

public boolean isInfoEnabled()

isTraceEnabled

public boolean isTraceEnabled()

isWarnEnabled

public boolean isWarnEnabled()

trace

public void trace(Object o)

trace

public void trace(Object o,
                  Throwable throwable)

warn

public void warn(Object o)

warn

public void warn(Object o,
                 Throwable throwable)


Copyright © 2012. All Rights Reserved.