Interface Log


  • public interface Log
    Interface that must be implemented the loggers returned by any LogFactory implementation. The logging methods defined by this interface represent the range of severity that may be associated with logging messages. How and where such messages are outputted is entirely up to the Log implementation. The logging severity levels are (in ascending order):
    1. trace
    2. debug
    3. info
    4. warn
    5. error
    6. fatal
    In addition, each Log implementation must provide isXXXXEnabled() methods, where 'XXXX' are the various logging severity levels. These methods return booleans indicating whether logging messages at the associated logging level will be outputted.
    Version:
    ©2004-2024 Snowtide
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void debug​(Object message)
      Output a logging message at the 'debug' severity level.
      void debug​(Object message, Throwable t)
      Output a logging message at the 'debug' severity level, including information about an associated Throwable.
      void error​(Object message)
      Output a logging message at the 'error' severity level.
      void error​(Object message, Throwable t)
      Output a logging message at the 'error' severity level, including information about an associated Throwable.
      void fatal​(Object message)
      Output a logging message at the 'fatal' severity level.
      void fatal​(Object message, Throwable t)
      Output a logging message at the 'fatal' severity level, including information about an associated Throwable.
      void info​(Object message)
      Output a logging message at the 'info' severity level.
      void info​(Object message, Throwable t)
      Output a logging message at the 'info' severity level, including information about an associated Throwable.
      boolean isDebugEnabled()
      Returns true if the 'debug' logging severity level is enabled.
      boolean isErrorEnabled()
      Returns true if the 'error' logging severity level is enabled.
      boolean isFatalEnabled()
      Returns true if the 'fatal' logging severity level is enabled.
      boolean isInfoEnabled()
      Returns true if the 'info' logging severity level is enabled.
      boolean isTraceEnabled()
      Returns true if the 'trace' logging severity level is enabled.
      boolean isWarnEnabled()
      Returns true if the 'warn' logging severity level is enabled.
      void trace​(Object message)
      Output a logging message at the 'trace' severity level.
      void trace​(Object message, Throwable t)
      Output a logging message at the 'trace' severity level, including information about an associated Throwable.
      void warn​(Object message)
      Output a logging message at the 'warn' severity level.
      void warn​(Object message, Throwable t)
      Output a logging message at the 'warn' severity level, including information about an associated Throwable.
    • Method Detail

      • isDebugEnabled

        boolean isDebugEnabled()
        Returns true if the 'debug' logging severity level is enabled.
      • isErrorEnabled

        boolean isErrorEnabled()
        Returns true if the 'error' logging severity level is enabled.
      • isFatalEnabled

        boolean isFatalEnabled()
        Returns true if the 'fatal' logging severity level is enabled.
      • isInfoEnabled

        boolean isInfoEnabled()
        Returns true if the 'info' logging severity level is enabled.
      • isTraceEnabled

        boolean isTraceEnabled()
        Returns true if the 'trace' logging severity level is enabled.
      • isWarnEnabled

        boolean isWarnEnabled()
        Returns true if the 'warn' logging severity level is enabled.
      • trace

        void trace​(Object message)
        Output a logging message at the 'trace' severity level.
      • trace

        void trace​(Object message,
                   Throwable t)
        Output a logging message at the 'trace' severity level, including information about an associated Throwable.
      • debug

        void debug​(Object message)
        Output a logging message at the 'debug' severity level.
      • debug

        void debug​(Object message,
                   Throwable t)
        Output a logging message at the 'debug' severity level, including information about an associated Throwable.
      • info

        void info​(Object message)
        Output a logging message at the 'info' severity level.
      • info

        void info​(Object message,
                  Throwable t)
        Output a logging message at the 'info' severity level, including information about an associated Throwable.
      • warn

        void warn​(Object message)
        Output a logging message at the 'warn' severity level.
      • warn

        void warn​(Object message,
                  Throwable t)
        Output a logging message at the 'warn' severity level, including information about an associated Throwable.
      • error

        void error​(Object message)
        Output a logging message at the 'error' severity level.
      • error

        void error​(Object message,
                   Throwable t)
        Output a logging message at the 'error' severity level, including information about an associated Throwable.
      • fatal

        void fatal​(Object message)
        Output a logging message at the 'fatal' severity level.
      • fatal

        void fatal​(Object message,
                   Throwable t)
        Output a logging message at the 'fatal' severity level, including information about an associated Throwable.