Class SimpleLog

java.lang.Object
oracle.stellent.ridc.common.log.impl.BaseLogSupport
oracle.stellent.ridc.common.log.simple.SimpleLog
All Implemented Interfaces:
ILog

public class SimpleLog extends BaseLogSupport
Simple console logging
  • Field Details

    • m_category

      protected String m_category
    • m_categoryName

      protected String m_categoryName
  • Constructor Details

    • SimpleLog

      public SimpleLog(String category)
  • Method Details

    • log

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

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

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

      protected void outputMessage(ILog.Level level, String message)
    • formatMessage

      protected String formatMessage(String message, Throwable error, ILog.Level level)