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 Log
Logging 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 void
error(java.lang.Object o)
Write out a log message at theERROR
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 theERROR
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 theFATAL
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 theFATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.void
info(java.lang.Object o)
Write out a log message at theINFO
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 theINFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.boolean
isErrorEnabled()
Returns if theERROR
log level is enabled.boolean
isFatalEnabled()
Returns if theFATAL
log level is enabled.boolean
isInfoEnabled()
Returns if theINFO
log level is enabled.boolean
isTraceEnabled()
Returns if theTRACE
log level is enabled.boolean
isWarnEnabled()
Returns if theWARN
log level is enabled.void
trace(java.lang.Object o)
Write out a log message at theTRACE
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 theTRACE
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 theWARN
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 theWARN
level with the stringification ofo
as the body of the message, also outputtingt
to 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 theTRACE
log level is enabled.
-
isInfoEnabled
boolean isInfoEnabled()
Returns if theINFO
log level is enabled.
-
isWarnEnabled
boolean isWarnEnabled()
Returns if theWARN
log level is enabled.
-
isErrorEnabled
boolean isErrorEnabled()
Returns if theERROR
log level is enabled.
-
isFatalEnabled
boolean isFatalEnabled()
Returns if theFATAL
log level is enabled.
-
trace
void trace(java.lang.Object o)
Write out a log message at theTRACE
level with the stringification ofo
as the body of the message.
-
trace
void trace(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theTRACE
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
info
void info(java.lang.Object o)
Write out a log message at theINFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
info
void info(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theINFO
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
warn
void warn(java.lang.Object o)
Write out a log message at theWARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
warn
void warn(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theWARN
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
error
void error(java.lang.Object o)
Write out a log message at theERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
error
void error(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theERROR
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
fatal
void fatal(java.lang.Object o)
Write out a log message at theFATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
fatal
void fatal(java.lang.Object o, java.lang.Throwable t)
Write out a log message at theFATAL
level with the stringification ofo
as the body of the message, also outputtingt
to the log.
-
-