Interface Logger


public interface Logger
Represents a logging interface for capturing application events at various levels.

Provides methods for logging messages at different severity levels, including debug, info, warning, and error.

Author:
Mikolaj Izdebski
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String format, Object... args)
    Logs a debug-level message.
    void
    error(String format, Object... args)
    Logs an error message.
    void
    info(String format, Object... args)
    Logs an informational message.
    boolean
    Checks whether debug logging is enabled.
    void
    warn(String format, Object... args)
    Logs a warning message.
  • Method Details

    • isDebugEnabled

      boolean isDebugEnabled()
      Checks whether debug logging is enabled.
      Returns:
      true if debug logging is enabled, false otherwise
    • debug

      void debug(String format, Object... args)
      Logs a debug-level message.

      The format string follows the SLF4J format, where '{}' is used as a placeholder for arguments.

      Parameters:
      format - the SLF4J format string
      args - the arguments referenced by the format specifiers in the format string
    • info

      void info(String format, Object... args)
      Logs an informational message.

      The format string follows the SLF4J format, where '{}' is used as a placeholder for arguments.

      Parameters:
      format - the SLF4J format string
      args - the arguments referenced by the format specifiers in the format string
    • warn

      void warn(String format, Object... args)
      Logs a warning message.

      The format string follows the SLF4J format, where '{}' is used as a placeholder for arguments.

      Parameters:
      format - the SLF4J format string
      args - the arguments referenced by the format specifiers in the format string
    • error

      void error(String format, Object... args)
      Logs an error message.

      The format string follows the SLF4J format, where '{}' is used as a placeholder for arguments.

      Parameters:
      format - the SLF4J format string
      args - the arguments referenced by the format specifiers in the format string