public final class LoggerBridge extends Object
This class maintains a static reference to the LoggerBridge instances created
by getInstance(Logger, Level).
| Modifier and Type | Method and Description |
|---|---|
static LoggerBridge |
getInstance(org.slf4j.Logger delegate,
org.slf4j.event.Level level)
Creates or gets the
LoggerBridge instance for the delegate Logger and Level. |
boolean |
isLevelEnabled()
Checks if the delegate logger is active for the configured level.
|
void |
log(String format,
Object... arguments)
Submits a log event to the delegate logger at the level of this
LoggerBridge. |
void |
log(String message,
Throwable t)
Submits a log event to the delegate logger at the level of this
LoggerBridge. |
public static LoggerBridge getInstance(org.slf4j.Logger delegate, org.slf4j.event.Level level)
LoggerBridge instance for the delegate Logger and Level.delegate - the Logger to which logging calls are delegatedlevel - the Level at which the returned LoggingBridge logsLoggingBridge instanceAssertionError - if there is an error instantiating the required LoggerBridge instancepublic boolean isLevelEnabled()
true if the delegate logger is configured to record events of the level
of this LoggerBridgepublic void log(String format, Object... arguments)
LoggerBridge.format - the log message formatarguments - the arguments for the messageCopyright © 2022. All rights reserved.