Package org.apache.openjpa.lib.log
Class CommonsLogFactory.LogAdapter
- java.lang.Object
-
- org.apache.openjpa.lib.log.CommonsLogFactory.LogAdapter
-
- All Implemented Interfaces:
Log
- Enclosing class:
- CommonsLogFactory
public static class CommonsLogFactory.LogAdapter extends Object implements Log
Adapts a commons logging log to theLoginterface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(Object o)Write out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voiderror(Object o, Throwable t)Write out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o)Write out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o, Throwable t)Write out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.org.apache.commons.logging.LoggetDelegate()voidinfo(Object o)Write out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidinfo(Object o, Throwable t)Write out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.booleanisErrorEnabled()Returns if theLog.ERRORlog level is enabled.booleanisFatalEnabled()Returns if theLog.FATALlog level is enabled.booleanisInfoEnabled()Returns if theLog.INFOlog level is enabled.booleanisTraceEnabled()Returns if theLog.TRACElog level is enabled.booleanisWarnEnabled()Returns if theLog.WARNlog level is enabled.voidtrace(Object o)Write out a log message at theLog.TRACElevel with the stringification ofoas the body of the message.voidtrace(Object o, Throwable t)Write out a log message at theLog.TRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o)Write out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o, Throwable t)Write out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-
-
Method Detail
-
getDelegate
public org.apache.commons.logging.Log getDelegate()
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:LogReturns if theLog.ERRORlog level is enabled.- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()
Description copied from interface:LogReturns if theLog.FATALlog level is enabled.- Specified by:
isFatalEnabledin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:LogReturns if theLog.INFOlog level is enabled.- Specified by:
isInfoEnabledin interfaceLog
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:LogReturns if theLog.TRACElog level is enabled.- Specified by:
isTraceEnabledin interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:LogReturns if theLog.WARNlog level is enabled.- Specified by:
isWarnEnabledin interfaceLog
-
trace
public void trace(Object o)
Description copied from interface:LogWrite out a log message at theLog.TRACElevel with the stringification ofoas the body of the message.
-
trace
public void trace(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.TRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
public void info(Object o)
Description copied from interface:LogWrite out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
public void info(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
public void warn(Object o)
Description copied from interface:LogWrite out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
public void warn(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
public void error(Object o)
Description copied from interface:LogWrite out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
public void error(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
fatal
public void fatal(Object o)
Description copied from interface:LogWrite out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-