Class LoggerFactory.DelegatingLogger
- java.lang.Object
-
- org.junit.platform.commons.logging.LoggerFactory.DelegatingLogger
-
- All Implemented Interfaces:
Logger
- Enclosing class:
- LoggerFactory
private static final class LoggerFactory.DelegatingLogger extends java.lang.Object implements Logger
-
-
Constructor Summary
Constructors Constructor Description DelegatingLogger(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat config level.voidconfig(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat config level.private java.util.logging.LogRecordcreateLogRecord(java.util.logging.Level level, java.lang.Throwable throwable, java.lang.String message)voiddebug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat debug level.voiddebug(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat debug level.voiderror(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat error level.voiderror(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat error level.voidinfo(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat info level.voidinfo(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat info level.private voidlog(java.util.logging.Level level, java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)private static java.lang.StringnullSafeGet(java.util.function.Supplier<java.lang.String> messageSupplier)voidtrace(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat trace level.voidtrace(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat trace level.voidwarn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Log the providedThrowableand message from the providedmessageSupplierat warning level.voidwarn(java.util.function.Supplier<java.lang.String> messageSupplier)Log the message from the providedmessageSupplierat warning level.
-
-
-
Method Detail
-
error
public void error(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat error level.Maps to
Level.SEVEREin JUL.
-
error
public void error(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat error level.Maps to
Level.SEVEREin JUL.
-
warn
public void warn(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat warning level.Maps to
Level.WARNINGin JUL.
-
warn
public void warn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat warning level.Maps to
Level.WARNINGin JUL.
-
info
public void info(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat info level.Maps to
Level.INFOin JUL.
-
info
public void info(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat info level.Maps to
Level.INFOin JUL.
-
config
public void config(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat config level.Maps to
Level.CONFIGin JUL.
-
config
public void config(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat config level.Maps to
Level.CONFIGin JUL.
-
debug
public void debug(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat debug level.Maps to
Level.FINEin JUL.
-
debug
public void debug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat debug level.Maps to
Level.FINEin JUL.
-
trace
public void trace(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:LoggerLog the message from the providedmessageSupplierat trace level.Maps to
Level.FINERin JUL.
-
trace
public void trace(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)Description copied from interface:LoggerLog the providedThrowableand message from the providedmessageSupplierat trace level.Maps to
Level.FINERin JUL.
-
log
private void log(java.util.logging.Level level, java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
-
createLogRecord
private java.util.logging.LogRecord createLogRecord(java.util.logging.Level level, java.lang.Throwable throwable, java.lang.String message)
-
nullSafeGet
private static java.lang.String nullSafeGet(java.util.function.Supplier<java.lang.String> messageSupplier)
-
-