|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.ormlite.logger.CommonsLoggingLog
public class CommonsLoggingLog
Class which implements our Log
interface by delegating to the Apache commons logging
classes via reflection. We use reflection so we can avoid the dependency. Yes we are delegating to a delegating
class.
Constructor Summary | |
---|---|
CommonsLoggingLog(String className)
|
Method Summary | |
---|---|
void |
debug(String msg)
Log a debug message. |
void |
debug(String msg,
Throwable t)
Log a debug message with a throwable. |
void |
error(String msg)
Log a error message. |
void |
error(String msg,
Throwable t)
Log a error message with a throwable. |
void |
fatal(String msg)
Log a fatal message. |
void |
fatal(String msg,
Throwable t)
Log a fatal message with a throwable. |
void |
info(String msg)
Log a info message. |
void |
info(String msg,
Throwable t)
Log a info message with a throwable. |
boolean |
isDebugEnabled()
Returns true if the log mode is in debug or higher. |
boolean |
isErrorEnabled()
Returns true if the log mode is in error or higher. |
boolean |
isFatalEnabled()
Returns true if the log mode is in fatal or higher. |
boolean |
isInfoEnabled()
Returns true if the log mode is in info or higher. |
boolean |
isTraceEnabled()
Returns true if the log mode is in trace or higher. |
boolean |
isWarnEnabled()
Returns true if the log mode is in warn or higher. |
void |
trace(String msg)
Log a trace message. |
void |
trace(String msg,
Throwable t)
Log a trace message with a throwable. |
void |
warn(String msg)
Log a warn message. |
void |
warn(String msg,
Throwable t)
Log a warn message with a throwable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonsLoggingLog(String className)
Method Detail |
---|
public boolean isTraceEnabled()
Log
isTraceEnabled
in interface Log
public boolean isDebugEnabled()
Log
isDebugEnabled
in interface Log
public boolean isInfoEnabled()
Log
isInfoEnabled
in interface Log
public boolean isWarnEnabled()
Log
isWarnEnabled
in interface Log
public boolean isErrorEnabled()
Log
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
Log
isFatalEnabled
in interface Log
public void trace(String msg)
Log
trace
in interface Log
public void trace(String msg, Throwable t)
Log
trace
in interface Log
public void debug(String msg)
Log
debug
in interface Log
public void debug(String msg, Throwable t)
Log
debug
in interface Log
public void info(String msg)
Log
info
in interface Log
public void info(String msg, Throwable t)
Log
info
in interface Log
public void warn(String msg)
Log
warn
in interface Log
public void warn(String msg, Throwable t)
Log
warn
in interface Log
public void error(String msg)
Log
error
in interface Log
public void error(String msg, Throwable t)
Log
error
in interface Log
public void fatal(String msg)
Log
fatal
in interface Log
public void fatal(String msg, Throwable t)
Log
fatal
in interface Log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |