public final class LoggerBridge
extends java.lang.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(java.lang.String format,
java.lang.Object... arguments)
Submits a log event to the delegate logger at the level of this
LoggerBridge. |
void |
log(java.lang.String message,
java.lang.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 instancejava.lang.AssertionError - 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(java.lang.String format,
java.lang.Object... arguments)
LoggerBridge.format - the log message formatarguments - the arguments for the messagepublic void log(java.lang.String message,
java.lang.Throwable t)
LoggerBridge.message - the log message formatt - the Throwable to log with messageCopyright © 2022. All rights reserved.