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​(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.
      void config​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at config 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 debug​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at debug 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 error​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at error 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.
      void info​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at info 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 trace​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at trace 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.
      void warn​(java.util.function.Supplier<java.lang.String> messageSupplier)
      Log the message from the provided messageSupplier at warning level.
    • Method Detail

      • error

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

        Maps to Level.SEVERE in JUL.

      • error

        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.

        Maps to Level.SEVERE in JUL.

      • warn

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

        Maps to Level.WARNING in JUL.

      • warn

        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.

        Maps to Level.WARNING in JUL.

      • info

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

        Maps to Level.INFO in JUL.

      • info

        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.

        Maps to Level.INFO in JUL.

      • config

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

        Maps to Level.CONFIG in JUL.

      • config

        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.

        Maps to Level.CONFIG in JUL.

      • debug

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

        Maps to Level.FINE in JUL.

      • debug

        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.

        Maps to Level.FINE in JUL.

      • trace

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

        Maps to Level.FINER in JUL.

      • trace

        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.

        Maps to Level.FINER in JUL.