Interface ILog

All Known Implementing Classes:
BaseLogSupport, JDKLog, Log4jLog, SimpleLog

public interface ILog
Simple abstraction for various logging frameworks.
  • Method Details

    • log

      void log(String message, ILog.Level level)
      Log a message
      Parameters:
      message - the message
      level - the level of the message
    • log

      void log(LocaleMessage message, ILog.Level level)
      Log a message to this logger object
      Parameters:
      message - wcm message object
      level - the log level
    • log

      void log(String message, Throwable error, ILog.Level level)
      Log a message with a corresponding exception
      Parameters:
      message - the log message
      error - the error
      level - the logging level
    • log

      void log(LocaleMessage message, Throwable error, ILog.Level level)
      Log a message with a corresponding exception to this logger
      Parameters:
      message - the wcm message object
      error - the error
      level - the log level
    • isLogEnabled

      boolean isLogEnabled(ILog.Level level)
      Determine if logging is enabled for a given level
      Parameters:
      level - the given log level
      Returns:
      true if the log level is enabled