net.lessy.util.logging
Class Logger
java.lang.Object
net.lessy.util.logging.Logger
public class Logger
- extends Object
- Author:
- Hans Lesmeister
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Logger
public Logger(Class clazz)
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.