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 void
config(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at config level.void
config(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
at config level.private java.util.logging.LogRecord
createLogRecord(java.util.logging.Level level, java.lang.Throwable throwable, java.lang.String message)
void
debug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at debug level.void
debug(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
at debug level.void
error(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at error level.void
error(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
at error level.void
info(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at info level.void
info(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
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.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at trace level.void
trace(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
at trace level.void
warn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Log the providedThrowable
and message from the providedmessageSupplier
at warning level.void
warn(java.util.function.Supplier<java.lang.String> messageSupplier)
Log the message from the providedmessageSupplier
at warning level.
-
-
-
Method Detail
-
error
public void error(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at error level.Maps to
Level.SEVERE
in JUL.
-
error
public void error(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at error level.Maps to
Level.SEVERE
in JUL.
-
warn
public void warn(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at warning level.Maps to
Level.WARNING
in JUL.
-
warn
public void warn(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at warning level.Maps to
Level.WARNING
in JUL.
-
info
public void info(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at info level.Maps to
Level.INFO
in JUL.
-
info
public void info(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at info level.Maps to
Level.INFO
in JUL.
-
config
public void config(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at config level.Maps to
Level.CONFIG
in JUL.
-
config
public void config(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at config level.Maps to
Level.CONFIG
in JUL.
-
debug
public void debug(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at debug level.Maps to
Level.FINE
in JUL.
-
debug
public void debug(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at debug level.Maps to
Level.FINE
in JUL.
-
trace
public void trace(java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the message from the providedmessageSupplier
at trace level.Maps to
Level.FINER
in JUL.
-
trace
public void trace(java.lang.Throwable throwable, java.util.function.Supplier<java.lang.String> messageSupplier)
Description copied from interface:Logger
Log the providedThrowable
and message from the providedmessageSupplier
at trace level.Maps to
Level.FINER
in 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)
-
-