private static final class LoggerFactory.DelegatingLogger extends java.lang.Object implements Logger
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
FQCN |
private java.util.logging.Logger |
julLogger |
private java.lang.String |
name |
| Constructor and Description |
|---|
DelegatingLogger(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
config(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at config level. |
void |
config(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at config level. |
private java.util.logging.LogRecord |
createLogRecord(java.util.logging.Level level,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
void |
debug(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at debug level. |
void |
debug(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at debug level. |
void |
error(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at error level. |
void |
error(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at error level. |
void |
info(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at info level. |
void |
info(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at info level. |
private void |
log(java.util.logging.Level level,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
private static java.lang.String |
nullSafeGet(java.util.function.Supplier<java.lang.String> messageSupplier) |
void |
trace(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at trace level. |
void |
trace(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at trace level. |
void |
warn(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the provided
messageSupplier at warning level. |
void |
warn(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Log the provided
Throwable and message from the provided
messageSupplier at warning level. |
private static final java.lang.String FQCN
private final java.lang.String name
private final java.util.logging.Logger julLogger
public void error(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at error level.
Maps to Level.SEVERE in JUL.
public void error(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at error level.
Maps to Level.SEVERE in JUL.
public void warn(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at warning level.
Maps to Level.WARNING in JUL.
public void warn(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at warning level.
Maps to Level.WARNING in JUL.
public void info(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at info level.
Maps to Level.INFO in JUL.
public void info(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at info level.
Maps to Level.INFO in JUL.
public void config(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at config level.
Maps to Level.CONFIG in JUL.
public void config(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at config level.
Maps to Level.CONFIG in JUL.
public void debug(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at debug level.
Maps to Level.FINE in JUL.
public void debug(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at debug level.
Maps to Level.FINE in JUL.
public void trace(java.util.function.Supplier<java.lang.String> messageSupplier)
LoggermessageSupplier at trace level.
Maps to Level.FINER in JUL.
public void trace(java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
LoggerThrowable and message from the provided
messageSupplier at trace level.
Maps to Level.FINER in JUL.
private void log(java.util.logging.Level level,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
private java.util.logging.LogRecord createLogRecord(java.util.logging.Level level,
java.lang.Throwable throwable,
java.util.function.Supplier<java.lang.String> messageSupplier)
private static java.lang.String nullSafeGet(java.util.function.Supplier<java.lang.String> messageSupplier)