public interface Log
LogFactory
implementation.
The logging methods defined by this interface represent the range of
severity that may be associated with logging messages.
How and where such messages are outputted is entirely up to the
Log
implementation.
The logging severity levels are (in ascending order):
Log
implementation must provide
isXXXXEnabled() methods, where 'XXXX' are the various logging
severity levels. These methods return booleans indicating whether
logging messages at the associated logging level will be outputted.Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Output a logging message at the 'debug' severity level.
|
void |
debug(Object message,
Throwable t)
Output a logging message at the 'debug' severity level, including
information about an associated Throwable.
|
void |
error(Object message)
Output a logging message at the 'error' severity level.
|
void |
error(Object message,
Throwable t)
Output a logging message at the 'error' severity level, including
information about an associated Throwable.
|
void |
fatal(Object message)
Output a logging message at the 'fatal' severity level.
|
void |
fatal(Object message,
Throwable t)
Output a logging message at the 'fatal' severity level, including
information about an associated Throwable.
|
void |
info(Object message)
Output a logging message at the 'info' severity level.
|
void |
info(Object message,
Throwable t)
Output a logging message at the 'info' severity level, including
information about an associated Throwable.
|
boolean |
isDebugEnabled()
Returns true if the 'debug' logging severity level is enabled.
|
boolean |
isErrorEnabled()
Returns true if the 'error' logging severity level is enabled.
|
boolean |
isFatalEnabled()
Returns true if the 'fatal' logging severity level is enabled.
|
boolean |
isInfoEnabled()
Returns true if the 'info' logging severity level is enabled.
|
boolean |
isTraceEnabled()
Returns true if the 'trace' logging severity level is enabled.
|
boolean |
isWarnEnabled()
Returns true if the 'warn' logging severity level is enabled.
|
void |
trace(Object message)
Output a logging message at the 'trace' severity level.
|
void |
trace(Object message,
Throwable t)
Output a logging message at the 'trace' severity level, including
information about an associated Throwable.
|
void |
warn(Object message)
Output a logging message at the 'warn' severity level.
|
void |
warn(Object message,
Throwable t)
Output a logging message at the 'warn' severity level, including
information about an associated Throwable.
|
boolean isDebugEnabled()
boolean isErrorEnabled()
boolean isFatalEnabled()
boolean isInfoEnabled()
boolean isTraceEnabled()
boolean isWarnEnabled()
void trace(Object message)
void trace(Object message, Throwable t)
void debug(Object message)
void debug(Object message, Throwable t)
void info(Object message)
void info(Object message, Throwable t)
void warn(Object message)
void warn(Object message, Throwable t)
void error(Object message)
void error(Object message, Throwable t)
void fatal(Object message)