Interface Log

All Known Implementing Classes:
Jdk14Logger, NullLogger, Slf4JLogger, StandardLogger

public interface Log
Unified interface to logging facilities on different platforms
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String LOGGER_INSTANCE_NAME
    Logger instance name
  • Method Summary

    Modifier and Type Method Description
    boolean isDebugEnabled()
    Is the 'debug' log level enabled?
    boolean isErrorEnabled()
    Is the 'error' log level enabled?
    boolean isFatalEnabled()
    Is the 'fatal' log level enabled?
    boolean isInfoEnabled()
    Is the 'info' log level enabled?
    boolean isTraceEnabled()
    Is the 'trace' log level enabled?
    boolean isWarnEnabled()
    Is the 'warn' log level enabled?
    void logDebug​(java.lang.Object msg)
    Logs the given message instance using the 'debug' level
    void logDebug​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'debug' level.
    void logError​(java.lang.Object msg)
    Logs the given message instance using the 'error' level
    void logError​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'error' level.
    void logFatal​(java.lang.Object msg)
    Logs the given message instance using the 'fatal' level
    void logFatal​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'fatal' level.
    void logInfo​(java.lang.Object msg)
    Logs the given message instance using the 'info' level
    void logInfo​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'info' level.
    void logTrace​(java.lang.Object msg)
    Logs the given message instance using the 'trace' level
    void logTrace​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'trace' level.
    void logWarn​(java.lang.Object msg)
    Logs the given message instance using the 'warn' level
    void logWarn​(java.lang.Object msg, java.lang.Throwable thrown)
    Logs the given message and Throwable at the 'warn' level.
  • Field Details

  • Method Details

    • isDebugEnabled

      boolean isDebugEnabled()
      Is the 'debug' log level enabled?
      Returns:
      true if so.
    • isErrorEnabled

      boolean isErrorEnabled()
      Is the 'error' log level enabled?
      Returns:
      true if so.
    • isFatalEnabled

      boolean isFatalEnabled()
      Is the 'fatal' log level enabled?
      Returns:
      true if so.
    • isInfoEnabled

      boolean isInfoEnabled()
      Is the 'info' log level enabled?
      Returns:
      true if so.
    • isTraceEnabled

      boolean isTraceEnabled()
      Is the 'trace' log level enabled?
      Returns:
      true if so.
    • isWarnEnabled

      boolean isWarnEnabled()
      Is the 'warn' log level enabled?
      Returns:
      true if so.
    • logDebug

      void logDebug​(java.lang.Object msg)
      Logs the given message instance using the 'debug' level
      Parameters:
      msg - the message to log
    • logDebug

      void logDebug​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'debug' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)
    • logError

      void logError​(java.lang.Object msg)
      Logs the given message instance using the 'error' level
      Parameters:
      msg - the message to log
    • logError

      void logError​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'error' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)
    • logFatal

      void logFatal​(java.lang.Object msg)
      Logs the given message instance using the 'fatal' level
      Parameters:
      msg - the message to log
    • logFatal

      void logFatal​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'fatal' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)
    • logInfo

      void logInfo​(java.lang.Object msg)
      Logs the given message instance using the 'info' level
      Parameters:
      msg - the message to log
    • logInfo

      void logInfo​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'info' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)
    • logTrace

      void logTrace​(java.lang.Object msg)
      Logs the given message instance using the 'trace' level
      Parameters:
      msg - the message to log
    • logTrace

      void logTrace​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'trace' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)
    • logWarn

      void logWarn​(java.lang.Object msg)
      Logs the given message instance using the 'warn' level
      Parameters:
      msg - the message to log
    • logWarn

      void logWarn​(java.lang.Object msg, java.lang.Throwable thrown)
      Logs the given message and Throwable at the 'warn' level.
      Parameters:
      msg - the message to log
      thrown - the throwable to log (may be null)