Interface PlatformLogger


public interface PlatformLogger
Platform-friendly logger facade to avoid binding to a specific implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Log a debug-level message.
    void
    error(String message)
    Log an error message.
    void
    error(String message, Throwable throwable)
    Log an error with throwable.
    void
    info(String message)
    Log an info-level message.
    default boolean
    Returns whether debug output is currently enabled by the platform logger.
    default boolean
    Returns whether trace output is currently enabled by the platform logger.
    void
    warn(String message)
    Log a warning message.
    void
    warn(String message, Throwable throwable)
    Log a warning with throwable.
  • Method Details

    • info

      void info(String message)
      Log an info-level message.
      Parameters:
      message - text to log
    • warn

      void warn(String message)
      Log a warning message.
      Parameters:
      message - text to log
    • warn

      void warn(String message, Throwable throwable)
      Log a warning with throwable.
      Parameters:
      message - text to log
      throwable - cause to attach
    • error

      void error(String message)
      Log an error message.
      Parameters:
      message - text to log
    • error

      void error(String message, Throwable throwable)
      Log an error with throwable.
      Parameters:
      message - text to log
      throwable - cause to attach
    • debug

      void debug(String message)
      Log a debug-level message.
      Parameters:
      message - text to log
    • isDebugEnabled

      default boolean isDebugEnabled()
      Returns whether debug output is currently enabled by the platform logger.
      Returns:
      true if debug logs would be emitted
    • isTraceEnabled

      default boolean isTraceEnabled()
      Returns whether trace output is currently enabled by the platform logger.
      Returns:
      true if trace logs would be emitted