| Constructor and Description |
|---|
Slf4jLogger(org.slf4j.Logger logger)
Creates
Slf4jLogger. |
Slf4jLogger(String name)
Creates
Slf4jLogger. |
| 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. |
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. |
public Slf4jLogger(String name)
Slf4jLogger.name - the slf4j logger name to usepublic Slf4jLogger(org.slf4j.Logger logger)
Slf4jLogger.logger - the slf4j logger to usepublic String getName()
LoggerLogger instance.public boolean isErrorEnabled()
LoggerisErrorEnabled in interface Loggertrue if this Logger is enabled for the ERROR levelpublic void error(String message)
Loggerpublic void error(String message, Object... args)
Loggererror in interface Loggermessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void error(Throwable throwable, String message)
LoggerThrowable and message at error level.public void error(Throwable throwable, String message, Object... args)
LoggerThrowable and message at error level.error in interface Loggerthrowable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public boolean isWarnEnabled()
LoggerisWarnEnabled in interface Loggertrue if this Logger is enabled for the WARN levelpublic void warn(String message)
Loggerpublic void warn(String message, Object... args)
Loggerwarn in interface Loggermessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void warn(Throwable throwable, String message)
LoggerThrowable and message at warn level.public void warn(Throwable throwable, String message, Object... args)
LoggerThrowable and message at warn level.warn in interface Loggerthrowable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public boolean isInfoEnabled()
LoggerisInfoEnabled in interface Loggertrue if this Logger is enabled for the INFO levelpublic void info(String message)
Loggerpublic void info(String message, Object... args)
Loggerinfo in interface Loggermessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void info(Throwable throwable, String message)
LoggerThrowable and message at info level.public void info(Throwable throwable, String message, Object... args)
LoggerThrowable and message at info level.info in interface Loggerthrowable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void debug(String message, Object... args)
Loggerdebug in interface Loggermessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void debug(Throwable throwable, String message)
LoggerThrowable and message at debug level.public void debug(Throwable throwable, String message, Object... args)
LoggerThrowable and message at debug level.debug in interface Loggerthrowable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public boolean isDebugEnabled()
LoggerisDebugEnabled in interface Loggertrue if this Logger is enabled for the DEBUG levelpublic void debug(String message)
Loggerpublic void trace(String message, Object... args)
Loggertrace in interface Loggermessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public void trace(Throwable throwable, String message)
LoggerThrowable and message at trace level.public void trace(Throwable throwable, String message, Object... args)
LoggerThrowable and message at trace level.trace in interface Loggerthrowable - the exception (throwable) to be loggedmessage - the pattern stringargs - object(s) to formatMessageFormat.format(String, Object...)public boolean isTraceEnabled()
LoggerisTraceEnabled in interface Loggertrue if this Logger is enabled for the TRACE levelCopyright © 2023. All rights reserved.