|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.mmapps.commons.logging.impl.MMBase17Logger
Adaptor class to convert jakarta-commons Log calls to MMBase 1.7 Logger calls.
There are some differences between commons-logging and MMBase 1.7 logging. First of all
MMBase 1.7 does not support creating log message that have a Throwable
as second argument, therefore the
methods that use the Throwable argument are rerouted to the methods without the argument. The second difference is that MMBase
uses some different Logging levels. documentation about what is actualy called is documented in the method documentation.
Field Summary | |
protected org.mmbase.util.logging.Logger |
logger
|
Constructor Summary | |
MMBase17Logger(org.mmbase.util.logging.Logger logger)
creates a new adaptor |
Method Summary | |
void |
debug(java.lang.Object object)
calls Logger.debug(java.lang.Object) |
void |
debug(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.debug(java.lang.Object) , discards the throwable argument |
void |
error(java.lang.Object object)
calls Logger.error(java.lang.Object) |
void |
error(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.error(java.lang.Object) , discards the throwable argument |
void |
fatal(java.lang.Object object)
calls Logger.fatal(java.lang.Object) |
void |
fatal(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.fatal(java.lang.Object) , discards the throwable argument |
void |
info(java.lang.Object object)
calls Logger.info(java.lang.Object) |
void |
info(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.info(java.lang.Object) , discards the throwable argument |
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
trace(java.lang.Object object)
calls Logger.trace(java.lang.Object) |
void |
trace(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.trace(java.lang.Object) , discard the throwable argument |
void |
warn(java.lang.Object object)
calls Logger.warn(java.lang.Object) |
void |
warn(java.lang.Object object,
java.lang.Throwable throwable)
calls Logger.warn(java.lang.Object) , discards the throwable argument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.mmbase.util.logging.Logger logger
Constructor Detail |
public MMBase17Logger(org.mmbase.util.logging.Logger logger)
logger
- the logger to useMethod Detail |
public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.commons.logging.Log
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.commons.logging.Log
public boolean isFatalEnabled()
isFatalEnabled
in interface org.apache.commons.logging.Log
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.commons.logging.Log
public boolean isTraceEnabled()
isTraceEnabled
in interface org.apache.commons.logging.Log
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.commons.logging.Log
public void trace(java.lang.Object object)
Logger.trace(java.lang.Object)
trace
in interface org.apache.commons.logging.Log
public void trace(java.lang.Object object, java.lang.Throwable throwable)
Logger.trace(java.lang.Object)
, discard the throwable argument
trace
in interface org.apache.commons.logging.Log
public void debug(java.lang.Object object)
Logger.debug(java.lang.Object)
debug
in interface org.apache.commons.logging.Log
public void debug(java.lang.Object object, java.lang.Throwable throwable)
Logger.debug(java.lang.Object)
, discards the throwable argument
debug
in interface org.apache.commons.logging.Log
public void info(java.lang.Object object)
Logger.info(java.lang.Object)
info
in interface org.apache.commons.logging.Log
public void info(java.lang.Object object, java.lang.Throwable throwable)
Logger.info(java.lang.Object)
, discards the throwable argument
info
in interface org.apache.commons.logging.Log
public void warn(java.lang.Object object)
Logger.warn(java.lang.Object)
warn
in interface org.apache.commons.logging.Log
public void warn(java.lang.Object object, java.lang.Throwable throwable)
Logger.warn(java.lang.Object)
, discards the throwable argument
warn
in interface org.apache.commons.logging.Log
public void error(java.lang.Object object)
Logger.error(java.lang.Object)
error
in interface org.apache.commons.logging.Log
public void error(java.lang.Object object, java.lang.Throwable throwable)
Logger.error(java.lang.Object)
, discards the throwable argument
error
in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object object)
Logger.fatal(java.lang.Object)
fatal
in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object object, java.lang.Throwable throwable)
Logger.fatal(java.lang.Object)
, discards the throwable argument
fatal
in interface org.apache.commons.logging.Log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |