Interface Logger


public interface Logger
Logger interface. Appropriate implementation will be used to log exiftool outputs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Display debug information to the console.
    void
    debug(String message, Object p1)
    Display debug information to the console.
    void
    debug(String message, Object p1, Object p2)
    Display debug information to the console.
    void
    error(String message)
    Display error information to the console.
    void
    error(String message, Object p1)
    Display error information to the console.
    void
    error(String message, Object p1, Object p2)
    Display error information to the console.
    void
    error(String message, Throwable ex)
    Log exception stack trace as error Level.
    void
    info(String message)
    Display information to the console.
    void
    info(String message, Object p1)
    Display information to the console.
    void
    info(String message, Object p1, Object p2)
    Display information to the console.
    boolean
    Check if debug level is enabled for this logger.
    void
    trace(String message)
    Display trace to the console.
    void
    trace(String message, Object p1)
    Display trace to the console.
    void
    trace(String message, Object p1, Object p2)
    Display trace to the console.
    void
    warn(String message)
    Display warning information to the console.
    void
    warn(String message, Object p1)
    Display warning information to the console.
    void
    warn(String message, Object p1, Object p2)
    Display warning information to the console.
    void
    warn(String message, Throwable ex)
    Display warning information to the console.
  • Method Details

    • trace

      void trace(String message)
      Display trace to the console. Message will be displayed if and only trace level is enabled.
      Parameters:
      message - Message to display.
    • trace

      void trace(String message, Object p1)
      Display trace to the console. Message will be displayed if and only trace level is enabled.
      Parameters:
      message - Message to display.
      p1 - Message parameter.
    • trace

      void trace(String message, Object p1, Object p2)
      Display trace to the console. Message will be displayed if and only trace level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
      p2 - Second message parameter.
    • info

      void info(String message)
      Display information to the console. Message will be displayed if and only information level is enabled.
      Parameters:
      message - Message to display.
    • info

      void info(String message, Object p1)
      Display information to the console. Message will be displayed if and only information level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
    • info

      void info(String message, Object p1, Object p2)
      Display information to the console. Message will be displayed if and only information level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
      p2 - Second message parameter.
    • debug

      void debug(String message)
      Display debug information to the console. Message will be displayed if and only debug level is enabled.
      Parameters:
      message - Message to display.
    • debug

      void debug(String message, Object p1)
      Display debug information to the console. Message will be displayed if and only debug level is enabled.
      Parameters:
      message - Message to display.
      p1 - Optional message parameter.
    • debug

      void debug(String message, Object p1, Object p2)
      Display debug information to the console. Message will be displayed if and only debug level is enabled.
      Parameters:
      message - Message to display.
      p1 - Optional (first) message parameter.
      p2 - Optional (second) message parameter.
    • warn

      void warn(String message)
      Display warning information to the console. Message will be displayed if and only warn level is enabled.
      Parameters:
      message - Message to display.
    • warn

      void warn(String message, Throwable ex)
      Display warning information to the console. Message will be displayed if and only warn level is enabled.
      Parameters:
      message - Message to display.
      ex - The exception to log.
    • warn

      void warn(String message, Object p1)
      Display warning information to the console. Message will be displayed if and only warn level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
    • warn

      void warn(String message, Object p1, Object p2)
      Display warning information to the console. Message will be displayed if and only warn level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
      p2 - Second message parameter.
    • error

      void error(String message)
      Display error information to the console. Message will be displayed if and only error level is enabled.
      Parameters:
      message - Message to display.
    • error

      void error(String message, Object p1)
      Display error information to the console. Message will be displayed if and only error level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
    • error

      void error(String message, Object p1, Object p2)
      Display error information to the console. Message will be displayed if and only error level is enabled.
      Parameters:
      message - Message to display.
      p1 - First message parameter.
      p2 - Second message parameter.
    • error

      void error(String message, Throwable ex)
      Log exception stack trace as error Level.
      Parameters:
      message - Error message.
      ex - Thrown exception.
    • isDebugEnabled

      boolean isDebugEnabled()
      Check if debug level is enabled for this logger.
      Returns:
      true if debug level is enabled, false otherwise.