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 Object implements Logger
  • Field Details

    • FQCN

      private static final String FQCN
    • name

      private final String name
    • julLogger

      private final Logger julLogger
  • Constructor Details

    • DelegatingLogger

      DelegatingLogger(String name)
  • Method Details

    • error

      public void error(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at error level.

      Maps to Level.SEVERE in JUL.

      Specified by:
      error in interface Logger
    • error

      public void error(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at error level.

      Maps to Level.SEVERE in JUL.

      Specified by:
      error in interface Logger
    • warn

      public void warn(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at warning level.

      Maps to Level.WARNING in JUL.

      Specified by:
      warn in interface Logger
    • warn

      public void warn(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at warning level.

      Maps to Level.WARNING in JUL.

      Specified by:
      warn in interface Logger
    • info

      public void info(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at info level.

      Maps to Level.INFO in JUL.

      Specified by:
      info in interface Logger
    • info

      public void info(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at info level.

      Maps to Level.INFO in JUL.

      Specified by:
      info in interface Logger
    • config

      public void config(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at config level.

      Maps to Level.CONFIG in JUL.

      Specified by:
      config in interface Logger
    • config

      public void config(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at config level.

      Maps to Level.CONFIG in JUL.

      Specified by:
      config in interface Logger
    • debug

      public void debug(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at debug level.

      Maps to Level.FINE in JUL.

      Specified by:
      debug in interface Logger
    • debug

      public void debug(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at debug level.

      Maps to Level.FINE in JUL.

      Specified by:
      debug in interface Logger
    • trace

      public void trace(Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the message from the provided messageSupplier at trace level.

      Maps to Level.FINER in JUL.

      Specified by:
      trace in interface Logger
    • trace

      public void trace(Throwable throwable, Supplier<String> messageSupplier)
      Description copied from interface: Logger
      Log the provided Throwable and message from the provided messageSupplier at trace level.

      Maps to Level.FINER in JUL.

      Specified by:
      trace in interface Logger
    • log

      private void log(Level level, Throwable throwable, Supplier<String> messageSupplier)
    • createLogRecord

      private LogRecord createLogRecord(Level level, Throwable throwable, String message)
    • nullSafeGet

      private static String nullSafeGet(Supplier<String> messageSupplier)