Interface AbstractLogging


public interface AbstractLogging
Abstract Logging interface
Author:
Leonard Woo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Logs a message CharSequence with the DEBUG level.
    void
    debug(CharSequence message, Throwable cause)
    Logs a CharSequence at the DEBUG level including the stack trace of the Throwable.
    void
    Logs a message CharSequence with the ERROR level.
    void
    error(CharSequence message, Throwable cause)
    Logs a CharSequence at the ERROR level including the stack trace of the Throwable.
    void
    Logs a message CharSequence with the FATAL level.
    void
    fatal(CharSequence message, Throwable cause)
    Logs a CharSequence at the FATAL level including the stack trace of the Throwable.
    void
    info(CharSequence message)
    Logs a message CharSequence with the INFO level.
    void
    info(CharSequence message, Throwable cause)
    Logs a CharSequence at the INFO level including the stack trace of the Throwable.
    boolean
    Checks whether this Logger is enabled for the DEBUG level.
    boolean
    Checks whether this Logger is enabled for the ERROR level.
    boolean
    Checks whether this Logger is enabled for the FATAL level.
    boolean
    Checks whether this Logger is enabled for the INFO level.
    boolean
    Checks whether this Logger is enabled for the TRACE level.
    boolean
    Checks whether this Logger is enabled for the WARN level.
    void
    Logs a message CharSequence with the TRACE level.
    void
    trace(CharSequence message, Throwable cause)
    Logs a CharSequence at the TRACE level including the stack trace of the Throwable.
    void
    warn(CharSequence message)
    Logs a message CharSequence with the WARN level.
    void
    warn(CharSequence message, Throwable cause)
    Logs a CharSequence at the WARN level including the stack trace of the Throwable.
  • Method Details

    • isTraceEnable

      boolean isTraceEnable()
      Checks whether this Logger is enabled for the TRACE level.
      Returns:
      true if this Logger is enabled for level TRACE, false otherwise.
    • trace

      void trace(CharSequence message)
      Logs a message CharSequence with the TRACE level.
      Parameters:
      message - the message object to log.
    • trace

      void trace(CharSequence message, Throwable cause)
      Logs a CharSequence at the TRACE level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.
    • isDebugEnable

      boolean isDebugEnable()
      Checks whether this Logger is enabled for the DEBUG level.
      Returns:
      true if this Logger is enabled for level DEBUG, false otherwise.
    • debug

      void debug(CharSequence message)
      Logs a message CharSequence with the DEBUG level.
      Parameters:
      message - the message object to log.
    • debug

      void debug(CharSequence message, Throwable cause)
      Logs a CharSequence at the DEBUG level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.
    • isInfoEnable

      boolean isInfoEnable()
      Checks whether this Logger is enabled for the INFO level.
      Returns:
      true if this Logger is enabled for level INFO, false otherwise.
    • info

      void info(CharSequence message)
      Logs a message CharSequence with the INFO level.
      Parameters:
      message - the message object to log.
    • info

      void info(CharSequence message, Throwable cause)
      Logs a CharSequence at the INFO level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.
    • isWarnEnable

      boolean isWarnEnable()
      Checks whether this Logger is enabled for the WARN level.
      Returns:
      true if this Logger is enabled for level WARN, false otherwise.
    • warn

      void warn(CharSequence message)
      Logs a message CharSequence with the WARN level.
      Parameters:
      message - the message object to log.
    • warn

      void warn(CharSequence message, Throwable cause)
      Logs a CharSequence at the WARN level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.
    • isErrorEnable

      boolean isErrorEnable()
      Checks whether this Logger is enabled for the ERROR level.
      Returns:
      true if this Logger is enabled for level ERROR, false otherwise.
    • error

      void error(CharSequence message)
      Logs a message CharSequence with the ERROR level.
      Parameters:
      message - the message object to log.
    • error

      void error(CharSequence message, Throwable cause)
      Logs a CharSequence at the ERROR level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.
    • isFatalEnable

      boolean isFatalEnable()
      Checks whether this Logger is enabled for the FATAL level.
      Returns:
      true if this Logger is enabled for level FATAL, false otherwise.
    • fatal

      void fatal(CharSequence message)
      Logs a message CharSequence with the FATAL level.
      Parameters:
      message - the message object to log.
    • fatal

      void fatal(CharSequence message, Throwable cause)
      Logs a CharSequence at the FATAL level including the stack trace of the Throwable. throwable passed as parameter.
      Parameters:
      message - the message object to log.
      cause - the Throwable to log, including its stack trace.