com.flat502.rox.log
Interface Log
- All Known Implementing Classes:
- AbstractLog, Log4JAdapter, NullLog, StreamLog
public interface Log
Abstracts logging so that we don't have to depend on something like
log4j but callers can easily plug us into their own logging framework.
Five levels are supported, in order of increasing "severity":
- Error
- Warning
- Info
- Debug
- Trace
This deliberately mimics the levels available in log4j, it being
the most widely deployed logging framework (and
reasonably representative of such frameworks).
- See Also:
LogFactory
Method Summary |
void |
debug(java.lang.String msg)
|
void |
debug(java.lang.String msg,
java.lang.Throwable e)
|
void |
error(java.lang.String msg)
|
void |
error(java.lang.String msg,
java.lang.Throwable e)
|
void |
info(java.lang.String msg)
|
void |
info(java.lang.String msg,
java.lang.Throwable e)
|
boolean |
logDebug()
|
boolean |
logError()
|
boolean |
logInfo()
|
boolean |
logTrace()
|
boolean |
logWarn()
|
void |
trace(java.lang.String msg)
|
void |
trace(java.lang.String msg,
java.lang.Throwable e)
|
void |
warn(java.lang.String msg)
|
void |
warn(java.lang.String msg,
java.lang.Throwable e)
|
trace
void trace(java.lang.String msg)
trace
void trace(java.lang.String msg,
java.lang.Throwable e)
debug
void debug(java.lang.String msg)
debug
void debug(java.lang.String msg,
java.lang.Throwable e)
info
void info(java.lang.String msg)
info
void info(java.lang.String msg,
java.lang.Throwable e)
warn
void warn(java.lang.String msg)
warn
void warn(java.lang.String msg,
java.lang.Throwable e)
error
void error(java.lang.String msg)
error
void error(java.lang.String msg,
java.lang.Throwable e)
logTrace
boolean logTrace()
logDebug
boolean logDebug()
logInfo
boolean logInfo()
logWarn
boolean logWarn()
logError
boolean logError()