consciouscode.logging
Class CommonsLog
java.lang.Object
consciouscode.logging.CommonsLog
- All Implemented Interfaces:
- Log
public class CommonsLog
- extends Object
- implements Log
A simple log that delegates to a named logger managed my Commons Logging's
LogFactory
.
This class shouldn't be necessary; Seedling needs a way to configure calls
to factory methods like LogFactory.getLog(String)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsLog
public CommonsLog(String logName)
getLogName
public String getLogName()
getDelegateLog
public Log getDelegateLog()
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interface Log
trace
public void trace(Object message)
- Specified by:
trace
in interface Log
trace
public void trace(Object message,
Throwable t)
- Specified by:
trace
in interface Log
debug
public void debug(Object message,
Throwable t)
- Specified by:
debug
in interface Log
debug
public void debug(Object message)
- Specified by:
debug
in interface Log
error
public void error(Object message,
Throwable t)
- Specified by:
error
in interface Log
error
public void error(Object message)
- Specified by:
error
in interface Log
fatal
public void fatal(Object message,
Throwable t)
- Specified by:
fatal
in interface Log
fatal
public void fatal(Object message)
- Specified by:
fatal
in interface Log
info
public void info(Object arg0,
Throwable arg1)
- Specified by:
info
in interface Log
info
public void info(Object arg0)
- Specified by:
info
in interface Log
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interface Log
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interface Log
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interface Log
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interface Log
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interface Log
warn
public void warn(Object arg0,
Throwable arg1)
- Specified by:
warn
in interface Log
warn
public void warn(Object arg0)
- Specified by:
warn
in interface Log
Copyright © 2001–2012
Todd V. Jonker. All Rights Reserved.