public interface Logger
This is a private interface and should not be used outside this project.
| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT
The root logger name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message)
Log the message from the provided message at debug level.
|
void |
debug(String message,
Object... args)
Log the message from the provided message at debug level.
|
void |
debug(Throwable throwable,
String message)
Log the provided
Throwable and message at debug level. |
void |
debug(Throwable throwable,
String message,
Object... args)
Log the provided
Throwable and message at debug level. |
void |
error(String message)
Log the message from the provided message at error level.
|
void |
error(String message,
Object... args)
Log the message from the provided message at error level.
|
void |
error(Throwable throwable,
String message)
Log the provided
Throwable and message at error level. |
void |
error(Throwable throwable,
String message,
Object... args)
Log the provided
Throwable and message at error level. |
static Logger |
get(Class<?> clazz)
Gets a
Logger for the specified class. |
static Logger |
get(String name)
Gets a
Logger for the specified name. |
String |
getName()
Gets the name of this
Logger instance. |
void |
info(String message)
Log the message from the provided at info level.
|
void |
info(String message,
Object... args)
Log the message from the provided at info level.
|
void |
info(Throwable throwable,
String message)
Log the provided
Throwable and message at info level. |
void |
info(Throwable throwable,
String message,
Object... args)
Log the provided
Throwable and message at info level. |
boolean |
isDebugEnabled()
Is the logger instance enabled for the DEBUG level.
|
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level.
|
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level.
|
boolean |
isTraceEnabled()
Is the logger instance enabled for the TRACE level.
|
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level.
|
void |
trace(String message)
Log the message from the provided message at trace level.
|
void |
trace(String message,
Object... args)
Log the message from the provided message at trace level.
|
void |
trace(Throwable throwable,
String message)
Log the provided
Throwable and message at trace level. |
void |
trace(Throwable throwable,
String message,
Object... args)
Log the provided
Throwable and message at trace level. |
void |
warn(String message)
Log the message from the provided message at warn level.
|
void |
warn(String message,
Object... args)
Log the message from the provided message at warn level.
|
void |
warn(Throwable throwable,
String message)
Log the provided
Throwable and message at warn level. |
void |
warn(Throwable throwable,
String message,
Object... args)
Log the provided
Throwable and message at warn level. |
static final String ROOT
static Logger get(Class<?> clazz)
Logger for the specified class.clazz - the class for which to get the loggerstatic Logger get(String name)
Logger for the specified name.name - the name for which to get the loggerString getName()
Logger instance.boolean isErrorEnabled()
true if this Logger is enabled for the ERROR levelvoid error(String message)
message - the message string to be loggedvoid error(String message, Object... args)
message - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)void error(Throwable throwable, String message)
Throwable and message at error level.message - the message string to be loggedthrowable - the exception (throwable) to be loggedvoid error(Throwable throwable, String message, Object... args)
Throwable and message at error level.throwable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)boolean isWarnEnabled()
true if this Logger is enabled for the WARN levelvoid warn(String message)
message - the message string to be loggedvoid warn(String message, Object... args)
message - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)void warn(Throwable throwable, String message)
Throwable and message at warn level.throwable - the exception (throwable) to be loggedmessage - the message string to be loggedvoid warn(Throwable throwable, String message, Object... args)
Throwable and message at warn level.throwable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)boolean isInfoEnabled()
true if this Logger is enabled for the INFO levelvoid info(String message)
message - the message string to be loggedvoid info(String message, Object... args)
message - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)void info(Throwable throwable, String message)
Throwable and message at info level.throwable - the exception (throwable) to be loggedmessage - the message string to be loggedvoid info(Throwable throwable, String message, Object... args)
Throwable and message at info level.throwable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)boolean isDebugEnabled()
true if this Logger is enabled for the DEBUG levelvoid debug(String message)
message - the message string to be loggedvoid debug(String message, Object... args)
message - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)void debug(Throwable throwable, String message)
Throwable and message at debug level.throwable - the exception (throwable) to be loggedmessage - the message string to be loggedvoid debug(Throwable throwable, String message, Object... args)
Throwable and message at debug level.throwable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)boolean isTraceEnabled()
true if this Logger is enabled for the TRACE levelvoid trace(String message)
message - the message string to be loggedvoid trace(String message, Object... args)
message - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)void trace(Throwable throwable, String message)
Throwable and message at trace level.throwable - the exception (throwable) to be loggedmessage - the message string to be loggedvoid trace(Throwable throwable, String message, Object... args)
Throwable and message at trace level.throwable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)Copyright © 2023. All rights reserved.