public interface Log
LogFactory
Modifier and Type | Field and Description |
---|---|
static String |
FATAL_LEVEL
Fatal level label for logger which do not handle it (slf4j for example).
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Log a message with debug log level.
|
void |
debug(String message,
Throwable t)
Log an error with debug log level.
|
void |
error(String message)
Log a message with error log level.
|
void |
error(String message,
Throwable t)
Log an error with error log level.
|
void |
fatal(String message)
Log a message with fatal log level.
|
void |
fatal(String message,
Throwable t)
Log an error with fatal log level.
|
String |
getName() |
void |
info(String message)
Log a message with info log level.
|
void |
info(String message,
Throwable t)
Log an error with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
void |
trace(String message)
Log a message with trace log level.
|
void |
trace(String message,
Throwable t)
Log an error with trace log level.
|
void |
warn(String message)
Log a message with warn log level.
|
void |
warn(String message,
Throwable t)
Log an error with warn log level.
|
static final String FATAL_LEVEL
boolean isTraceEnabled()
boolean isDebugEnabled()
boolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
boolean isFatalEnabled()
void trace(String message)
message
- log this messagevoid trace(String message, Throwable t)
message
- log this messaget
- log this causevoid debug(String message)
message
- log this messagevoid debug(String message, Throwable t)
message
- log this messaget
- log this causevoid info(String message)
message
- log this messagevoid info(String message, Throwable t)
message
- log this messaget
- log this causevoid warn(String message)
message
- log this messagevoid warn(String message, Throwable t)
message
- log this messaget
- log this causevoid error(String message)
message
- log this messagevoid error(String message, Throwable t)
message
- log this messaget
- log this causevoid fatal(String message)
message
- log this messagevoid fatal(String message, Throwable t)
message
- log this messaget
- log this causeString getName()