Class Logger

java.lang.Object
weka.core.logging.Logger
All Implemented Interfaces:
RevisionHandler
Direct Known Subclasses:
ConsoleLogger

public abstract class Logger extends Object implements RevisionHandler
Abstract superclass for all loggers.
Version:
$Revision: 11646 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
  • Field Details

  • Constructor Details

    • Logger

      public Logger()
      Initializes the logger.
  • Method Details

    • getSingleton

      public static Logger getSingleton()
      Returns the singleton instance of the logger.
      Returns:
      the logger instance
    • log

      public static void log(Logger.Level level, String msg)
      Logs the given message under the given level.
      Parameters:
      level - the level of the message
      msg - the message to log
    • log

      public static void log(Logger.Level level, Throwable t)
      Logs the given message under the given level.
      Parameters:
      level - the level of the message
      t - the throwable to log
    • getMinLevel

      public Logger.Level getMinLevel()
      Returns the minimum level log messages must have in order to appear in the log.
      Returns:
      the level