Interface Logger


  • @API(status=INTERNAL,
         since="1.0")
    public interface Logger
    The Logger API serves as a simple logging facade for java.util.logging (JUL).
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void config​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at config level.
      void config​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at config level.
      void debug​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at debug level.
      void debug​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at debug level.
      void error​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at error level.
      void error​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at error level.
      void info​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at info level.
      void info​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at info level.
      void trace​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at trace level.
      void trace​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at trace level.
      void warn​(Throwable throwable, Supplier<String> messageSupplier)
      Log the provided Throwable and message from the provided messageSupplier at warning level.
      void warn​(Supplier<String> messageSupplier)
      Log the message from the provided messageSupplier at warning level.
    • Method Detail

      • error

        void error​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at error level.

        Maps to Level.SEVERE in JUL.

      • error

        void error​(Throwable throwable,
                   Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at error level.

        Maps to Level.SEVERE in JUL.

      • warn

        void warn​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at warning level.

        Maps to Level.WARNING in JUL.

      • warn

        void warn​(Throwable throwable,
                  Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at warning level.

        Maps to Level.WARNING in JUL.

      • info

        void info​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at info level.

        Maps to Level.INFO in JUL.

      • info

        void info​(Throwable throwable,
                  Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at info level.

        Maps to Level.INFO in JUL.

      • config

        void config​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at config level.

        Maps to Level.CONFIG in JUL.

      • config

        void config​(Throwable throwable,
                    Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at config level.

        Maps to Level.CONFIG in JUL.

      • debug

        void debug​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at debug level.

        Maps to Level.FINE in JUL.

      • debug

        void debug​(Throwable throwable,
                   Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at debug level.

        Maps to Level.FINE in JUL.

      • trace

        void trace​(Supplier<String> messageSupplier)
        Log the message from the provided messageSupplier at trace level.

        Maps to Level.FINER in JUL.

      • trace

        void trace​(Throwable throwable,
                   Supplier<String> messageSupplier)
        Log the provided Throwable and message from the provided messageSupplier at trace level.

        Maps to Level.FINER in JUL.