Interface Logger

All Known Implementing Classes:
JulLogger, SLF4JLogger, SystemLogger

public interface Logger
The logger
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    log(String message)
    Log an info message
    void
    log(LogLevel level, String message)
    Log a message
    default void
    log(LogLevel level, String message, Throwable throwable)
    Log a message and a throwable
    default void
    log(LogLevel level, Throwable throwable)
    Log a throwable
  • Method Details

    • log

      void log(LogLevel level, String message)
      Log a message
      Parameters:
      level - the level
      message - the message
    • log

      default void log(String message)
      Log an info message
      Parameters:
      message - the message
    • log

      default void log(LogLevel level, Throwable throwable)
      Log a throwable
      Parameters:
      level - the level
      throwable - the throwable
    • log

      default void log(LogLevel level, String message, Throwable throwable)
      Log a message and a throwable
      Parameters:
      level - the level
      message - the message
      throwable - the throwable