Package com.snowtide.util.logging
Interface Log
-
public interface LogInterface that must be implemented the loggers returned by anyLogFactoryimplementation. 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 theLogimplementation. The logging severity levels are (in ascending order):- trace
- debug
- info
- warn
- error
- fatal
Logimplementation 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.- Version:
- ©2004-2025 Snowtide
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(Object message)Output a logging message at the 'debug' severity level.voiddebug(Object message, Throwable t)Output a logging message at the 'debug' severity level, including information about an associated Throwable.voiderror(Object message)Output a logging message at the 'error' severity level.voiderror(Object message, Throwable t)Output a logging message at the 'error' severity level, including information about an associated Throwable.voidfatal(Object message)Output a logging message at the 'fatal' severity level.voidfatal(Object message, Throwable t)Output a logging message at the 'fatal' severity level, including information about an associated Throwable.voidinfo(Object message)Output a logging message at the 'info' severity level.voidinfo(Object message, Throwable t)Output a logging message at the 'info' severity level, including information about an associated Throwable.booleanisDebugEnabled()Returns true if the 'debug' logging severity level is enabled.booleanisErrorEnabled()Returns true if the 'error' logging severity level is enabled.booleanisFatalEnabled()Returns true if the 'fatal' logging severity level is enabled.booleanisInfoEnabled()Returns true if the 'info' logging severity level is enabled.booleanisTraceEnabled()Returns true if the 'trace' logging severity level is enabled.booleanisWarnEnabled()Returns true if the 'warn' logging severity level is enabled.voidtrace(Object message)Output a logging message at the 'trace' severity level.voidtrace(Object message, Throwable t)Output a logging message at the 'trace' severity level, including information about an associated Throwable.voidwarn(Object message)Output a logging message at the 'warn' severity level.voidwarn(Object message, Throwable t)Output a logging message at the 'warn' severity level, including information about an associated Throwable.
-
-
-
Method Detail
-
isDebugEnabled
boolean isDebugEnabled()
Returns true if the 'debug' logging severity level is enabled.
-
isErrorEnabled
boolean isErrorEnabled()
Returns true if the 'error' logging severity level is enabled.
-
isFatalEnabled
boolean isFatalEnabled()
Returns true if the 'fatal' logging severity level is enabled.
-
isInfoEnabled
boolean isInfoEnabled()
Returns true if the 'info' logging severity level is enabled.
-
isTraceEnabled
boolean isTraceEnabled()
Returns true if the 'trace' logging severity level is enabled.
-
isWarnEnabled
boolean isWarnEnabled()
Returns true if the 'warn' logging severity level is enabled.
-
trace
void trace(Object message)
Output a logging message at the 'trace' severity level.
-
trace
void trace(Object message, Throwable t)
Output a logging message at the 'trace' severity level, including information about an associated Throwable.
-
debug
void debug(Object message)
Output a logging message at the 'debug' severity level.
-
debug
void debug(Object message, Throwable t)
Output a logging message at the 'debug' severity level, including information about an associated Throwable.
-
info
void info(Object message)
Output a logging message at the 'info' severity level.
-
info
void info(Object message, Throwable t)
Output a logging message at the 'info' severity level, including information about an associated Throwable.
-
warn
void warn(Object message)
Output a logging message at the 'warn' severity level.
-
warn
void warn(Object message, Throwable t)
Output a logging message at the 'warn' severity level, including information about an associated Throwable.
-
error
void error(Object message)
Output a logging message at the 'error' severity level.
-
error
void error(Object message, Throwable t)
Output a logging message at the 'error' severity level, including information about an associated Throwable.
-
fatal
void fatal(Object message)
Output a logging message at the 'fatal' severity level.
-
-