Interface Logger

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      static java.lang.String appendError​(java.lang.String message, java.lang.Throwable error)  
      default void debug​(java.lang.String message)
      Logs a message with the `DEBUG` level.
      default void debug​(java.lang.String message, java.lang.Throwable error)
      Logs a message with the `DEBUG` level.
      default void debug​(java.util.function.Supplier<java.lang.String> message)
      Logs a message with the `DEBUG` level.
      default void debug​(java.util.function.Supplier<java.lang.String> message, java.lang.Throwable error)
      Logs a message with the `DEBUG` level.
      default void error​(java.lang.String message)
      Logs a message with the `ERROR` level.
      default void error​(java.lang.String message, java.lang.Throwable error)
      Logs a message with the `ERROR` level.
      default void error​(java.util.function.Supplier<java.lang.String> message)
      Logs a message with the `ERROR` level.
      default void error​(java.util.function.Supplier<java.lang.String> message, java.lang.Throwable error)
      Logs a message with the `ERROR` level.
      default void info​(java.lang.String message)
      Logs a message with the `INFO` level.
      default void info​(java.lang.String message, java.lang.Throwable error)
      Logs a message with the `INFO` level.
      default void info​(java.util.function.Supplier<java.lang.String> message)
      Logs a message with the `INFO` level.
      default void info​(java.util.function.Supplier<java.lang.String> message, java.lang.Throwable error)
      Logs a message with the `INFO` level.
      boolean isDebugEnabled()
      `true` if the logger instance is enabled for the `DEBUG` level.
      boolean isErrorEnabled()
      `true` if the logger instance is enabled for the `ERROR` level.
      boolean isInfoEnabled()
      `true` if the logger instance is enabled for the `INFO` level.
      boolean isTraceEnabled()
      `true` if the logger instance is enabled for the `TRACE` level.
      boolean isWarnEnabled()
      `true` if the logger instance is enabled for the `WARN` level.
      void output​(LogLevel level, java.lang.String message)
      Outputs a log message at the specified level
      void output​(LogLevel level, java.lang.String message, java.lang.Throwable error)
      Outputs a log message at the specified level
      default void trace​(java.lang.String message)
      Logs a message with the `TRACE` level.
      default void trace​(java.lang.String message, java.lang.Throwable error)
      Logs a message with the `TRACE` level.
      default void trace​(java.util.function.Supplier<java.lang.String> message)
      Logs a message with the `TRACE` level.
      default void trace​(java.util.function.Supplier<java.lang.String> message, java.lang.Throwable error)
      Logs a message with the `TRACE` level.
      default void warn​(java.lang.String message)
      Logs a message with the `WARN` level.
      default void warn​(java.lang.String message, java.lang.Throwable error)
      Logs a message with the `WARN` level.
      default void warn​(java.util.function.Supplier<java.lang.String> message)
      Logs a message with the `WARN` level.
      default void warn​(java.util.function.Supplier<java.lang.String> message, java.lang.Throwable error)
      Logs a message with the `WARN` level.
    • Method Detail

      • isTraceEnabled

        boolean isTraceEnabled()
        `true` if the logger instance is enabled for the `TRACE` level.
        Returns:
        whether TRACE level is enabled
      • isDebugEnabled

        boolean isDebugEnabled()
        `true` if the logger instance is enabled for the `DEBUG` level.
        Returns:
        whether DEBUG level is enabled
      • isInfoEnabled

        boolean isInfoEnabled()
        `true` if the logger instance is enabled for the `INFO` level.
        Returns:
        whether INFO level is enabled
      • isWarnEnabled

        boolean isWarnEnabled()
        `true` if the logger instance is enabled for the `WARN` level.
        Returns:
        whether WARN level is enabled
      • isErrorEnabled

        boolean isErrorEnabled()
        `true` if the logger instance is enabled for the `ERROR` level.
        Returns:
        whether ERROR level is enabled
      • trace

        default void trace​(java.lang.String message)
        Logs a message with the `TRACE` level.
        Parameters:
        message - the message to log
      • trace

        default void trace​(java.util.function.Supplier<java.lang.String> message)
        Logs a message with the `TRACE` level.
        Parameters:
        message - the supplier of the message to log
      • trace

        default void trace​(java.lang.String message,
                           java.lang.Throwable error)
        Logs a message with the `TRACE` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • trace

        default void trace​(java.util.function.Supplier<java.lang.String> message,
                           java.lang.Throwable error)
        Logs a message with the `TRACE` level.
        Parameters:
        message - the supplier of the message to log
        error - the associated exception
      • debug

        default void debug​(java.lang.String message)
        Logs a message with the `DEBUG` level.
        Parameters:
        message - the message to log
      • debug

        default void debug​(java.util.function.Supplier<java.lang.String> message)
        Logs a message with the `DEBUG` level.
        Parameters:
        message - the supplier of the message to log
      • debug

        default void debug​(java.lang.String message,
                           java.lang.Throwable error)
        Logs a message with the `DEBUG` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • debug

        default void debug​(java.util.function.Supplier<java.lang.String> message,
                           java.lang.Throwable error)
        Logs a message with the `DEBUG` level.
        Parameters:
        message - the supplier of the message to log
        error - the associated exception
      • info

        default void info​(java.lang.String message)
        Logs a message with the `INFO` level.
        Parameters:
        message - the message to log
      • info

        default void info​(java.util.function.Supplier<java.lang.String> message)
        Logs a message with the `INFO` level.
        Parameters:
        message - the supplier of the message to log
      • info

        default void info​(java.lang.String message,
                          java.lang.Throwable error)
        Logs a message with the `INFO` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • info

        default void info​(java.util.function.Supplier<java.lang.String> message,
                          java.lang.Throwable error)
        Logs a message with the `INFO` level.
        Parameters:
        message - the supplier of the message to log
        error - the associated exception
      • warn

        default void warn​(java.lang.String message)
        Logs a message with the `WARN` level.
        Parameters:
        message - the message to log
      • warn

        default void warn​(java.util.function.Supplier<java.lang.String> message)
        Logs a message with the `WARN` level.
        Parameters:
        message - the supplier of the message to log
      • warn

        default void warn​(java.lang.String message,
                          java.lang.Throwable error)
        Logs a message with the `WARN` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • warn

        default void warn​(java.util.function.Supplier<java.lang.String> message,
                          java.lang.Throwable error)
        Logs a message with the `WARN` level.
        Parameters:
        message - the supplier of the message to log
        error - the associated exception
      • error

        default void error​(java.lang.String message)
        Logs a message with the `ERROR` level.
        Parameters:
        message - the message to log
      • error

        default void error​(java.util.function.Supplier<java.lang.String> message)
        Logs a message with the `ERROR` level.
        Parameters:
        message - the supplier of the message to log
      • error

        default void error​(java.lang.String message,
                           java.lang.Throwable error)
        Logs a message with the `ERROR` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • error

        default void error​(java.util.function.Supplier<java.lang.String> message,
                           java.lang.Throwable error)
        Logs a message with the `ERROR` level.
        Parameters:
        message - the message to log
        error - the associated exception
      • output

        void output​(LogLevel level,
                    java.lang.String message)
        Outputs a log message at the specified level
        Parameters:
        level - the level to log at
        message - the message to log
      • output

        void output​(LogLevel level,
                    java.lang.String message,
                    java.lang.Throwable error)
        Outputs a log message at the specified level
        Parameters:
        level - the level to log at
        message - the message to log
        error - the associated exception
      • appendError

        static java.lang.String appendError​(java.lang.String message,
                                            java.lang.Throwable error)