Package org.apache.openjpa.lib.log
Interface Log
-
- All Known Implementing Classes:
AbstractLog,CommonsLogFactory.LogAdapter,Log4J2LogFactory.LogAdapter,Log4JLogFactory.LogAdapter,LogFactoryImpl.LogImpl,NoneLogFactory.NoneLog,SLF4JLogFactory.LogAdapter
public interface LogLogging interface that is independent of other logging frameworks.- Author:
- Patrick Linskey, Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiderror(Object o)Write out a log message at theERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voiderror(Object o, Throwable t)Write out a log message at theERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o)Write out a log message at theFATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o, Throwable t)Write out a log message at theFATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidinfo(Object o)Write out a log message at theINFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidinfo(Object o, Throwable t)Write out a log message at theINFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.booleanisErrorEnabled()Returns if theERRORlog level is enabled.booleanisFatalEnabled()Returns if theFATALlog level is enabled.booleanisInfoEnabled()Returns if theINFOlog level is enabled.booleanisTraceEnabled()Returns if theTRACElog level is enabled.booleanisWarnEnabled()Returns if theWARNlog level is enabled.voidtrace(Object o)Write out a log message at theTRACElevel with the stringification ofoas the body of the message.voidtrace(Object o, Throwable t)Write out a log message at theTRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o)Write out a log message at theWARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o, Throwable t)Write out a log message at theWARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-
-
Field Detail
-
TRACE
static final short TRACE
- See Also:
- Constant Field Values
-
INFO
static final short INFO
- See Also:
- Constant Field Values
-
WARN
static final short WARN
- See Also:
- Constant Field Values
-
ERROR
static final short ERROR
- See Also:
- Constant Field Values
-
FATAL
static final short FATAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isTraceEnabled
boolean isTraceEnabled()
Returns if theTRACElog level is enabled.
-
isInfoEnabled
boolean isInfoEnabled()
Returns if theINFOlog level is enabled.
-
isWarnEnabled
boolean isWarnEnabled()
Returns if theWARNlog level is enabled.
-
isErrorEnabled
boolean isErrorEnabled()
Returns if theERRORlog level is enabled.
-
isFatalEnabled
boolean isFatalEnabled()
Returns if theFATALlog level is enabled.
-
trace
void trace(Object o)
Write out a log message at theTRACElevel with the stringification ofoas the body of the message.
-
trace
void trace(Object o, Throwable t)
Write out a log message at theTRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
void info(Object o)
Write out a log message at theINFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
void info(Object o, Throwable t)
Write out a log message at theINFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
void warn(Object o)
Write out a log message at theWARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
void warn(Object o, Throwable t)
Write out a log message at theWARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
void error(Object o)
Write out a log message at theERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
void error(Object o, Throwable t)
Write out a log message at theERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
fatal
void fatal(Object o)
Write out a log message at theFATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-