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 java.lang.Object implements Log
Adapts a commons logging log to theLog
interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(java.lang.Object o)
Write out a log message at theLog.ERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
error(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theLog.ERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
fatal(java.lang.Object o)
Write out a log message at theLog.FATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
fatal(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theLog.FATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.org.apache.commons.logging.Log
getDelegate()
void
info(java.lang.Object o)
Write out a log message at theLog.INFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
info(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theLog.INFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.boolean
isErrorEnabled()
Returns if theLog.ERROR
log level is enabled.boolean
isFatalEnabled()
Returns if theLog.FATAL
log level is enabled.boolean
isInfoEnabled()
Returns if theLog.INFO
log level is enabled.boolean
isTraceEnabled()
Returns if theLog.TRACE
log level is enabled.boolean
isWarnEnabled()
Returns if theLog.WARN
log level is enabled.void
trace(java.lang.Object o)
Write out a log message at theLog.TRACE
level with the stringification ofo
as the body of the message.void
trace(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theLog.TRACE
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
warn(java.lang.Object o)
Write out a log message at theLog.WARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
warn(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theLog.WARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
-
-
Method Detail
-
getDelegate
public org.apache.commons.logging.Log getDelegate()
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:Log
Returns if theLog.ERROR
log level is enabled.- Specified by:
isErrorEnabled
in interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()
Description copied from interface:Log
Returns if theLog.FATAL
log level is enabled.- Specified by:
isFatalEnabled
in interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:Log
Returns if theLog.INFO
log level is enabled.- Specified by:
isInfoEnabled
in interfaceLog
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:Log
Returns if theLog.TRACE
log level is enabled.- Specified by:
isTraceEnabled
in interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:Log
Returns if theLog.WARN
log level is enabled.- Specified by:
isWarnEnabled
in interfaceLog
-
trace
public void trace(java.lang.Object o)
Description copied from interface:Log
Write out a log message at theLog.TRACE
level with the stringification ofo
as the body of the message.
-
trace
public void trace(java.lang.Object o, java.lang.Throwable t)
Description copied from interface:Log
Write out a log message at theLog.TRACE
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
info
public void info(java.lang.Object o)
Description copied from interface:Log
Write out a log message at theLog.INFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
info
public void info(java.lang.Object o, java.lang.Throwable t)
Description copied from interface:Log
Write out a log message at theLog.INFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
warn
public void warn(java.lang.Object o)
Description copied from interface:Log
Write out a log message at theLog.WARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
warn
public void warn(java.lang.Object o, java.lang.Throwable t)
Description copied from interface:Log
Write out a log message at theLog.WARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
error
public void error(java.lang.Object o)
Description copied from interface:Log
Write out a log message at theLog.ERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
error
public void error(java.lang.Object o, java.lang.Throwable t)
Description copied from interface:Log
Write out a log message at theLog.ERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
fatal
public void fatal(java.lang.Object o)
Description copied from interface:Log
Write out a log message at theLog.FATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
-