| Constructor and Description |
|---|
Slf4jLogger(String name,
Object slf4jLogger)
Create an
Slf4jLogger with the specified name and underlying Logger object. |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message)
Output a debug message.
|
void |
error(Object message)
Output an error message.
|
void |
error(Object message,
Throwable throwable)
Output an error message along with a
Throwable. |
String |
getName()
Get the name associated with this
Logger. |
void |
info(Object message)
Output an info message.
|
boolean |
isDebugEnabled()
Test whether debug output is enabled for this
Logger. |
boolean |
isErrorEnabled()
Test whether error output is enabled for this
Logger. |
boolean |
isInfoEnabled()
Test whether info output is enabled for this
Logger. |
boolean |
isTraceEnabled()
Test whether trace output is enabled for this
Logger. |
boolean |
isWarnEnabled()
Test whether warning output is enabled for this
Logger. |
void |
trace(Object message)
Output a trace message.
|
void |
warn(Object message)
Output a warning message.
|
public Slf4jLogger(String name, Object slf4jLogger) throws NoSuchMethodException
Slf4jLogger with the specified name and underlying Logger object.name - the nameslf4jLogger - the Logger object (must be of type compatible with org.slf4j.Logger)NoSuchMethodException - if the any of the required methods does not exist in the Loggerpublic String getName()
Logger.public boolean isTraceEnabled()
Logger.isTraceEnabled in interface Loggertrue if trace output is enabledpublic boolean isDebugEnabled()
Logger.isDebugEnabled in interface Loggertrue if debug output is enabledpublic boolean isInfoEnabled()
Logger.isInfoEnabled in interface Loggertrue if info output is enabledpublic boolean isWarnEnabled()
Logger.isWarnEnabled in interface Loggertrue if warning output is enabledpublic boolean isErrorEnabled()
Logger.isErrorEnabled in interface Loggertrue if error output is enabledpublic void trace(Object message)
trace in interface Loggermessage - the message (will be output using Object.toString()public void debug(Object message)
debug in interface Loggermessage - the message (will be output using Object.toString()public void info(Object message)
info in interface Loggermessage - the message (will be output using Object.toString()public void warn(Object message)
warn in interface Loggermessage - the message (will be output using Object.toString()public void error(Object message)
error in interface Loggermessage - the message (will be output using Object.toString()Copyright © 2021. All rights reserved.