Package org.apache.openjpa.lib.log
Class SLF4JLogFactory.LogAdapter
- java.lang.Object
-
- org.apache.openjpa.lib.log.SLF4JLogFactory.LogAdapter
-
- All Implemented Interfaces:
Log
- Enclosing class:
- SLF4JLogFactory
public static class SLF4JLogFactory.LogAdapter extends Object implements Log
Adapts a Log4J logger to theLoginterface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object o)voiddebug(Object o, Throwable t)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.slf4j.LoggergetDelegate()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.booleanisDebugEnabled()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.slf4j.Logger getDelegate()
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:LogReturns if theLog.TRACElog level is enabled.- Specified by:
isTraceEnabledin interfaceLog
-
isDebugEnabled
public boolean isDebugEnabled()
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:LogReturns if theLog.INFOlog level is enabled.- Specified by:
isInfoEnabledin interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:LogReturns if theLog.WARNlog level is enabled.- Specified by:
isWarnEnabledin interfaceLog
-
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
-
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.
-
debug
public void debug(Object o)
-
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.
-
-