类 Logger

java.lang.Object
weka.core.logging.Logger
所有已实现的接口:
RevisionHandler
直接已知子类:
ConsoleLogger

public abstract class Logger extends Object implements RevisionHandler
Abstract superclass for all loggers.
版本:
$Revision: 4716 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 字段详细资料

    • PROPERTIES_FILE

      public static final String PROPERTIES_FILE
      the properties file.
      另请参阅:
  • 构造器详细资料

    • Logger

      public Logger()
      Initializes the logger.
  • 方法详细资料

    • getMinLevel

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

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

      public static void log(Logger.Level level, String msg)
      Logs the given message under the given level.
      参数:
      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.
      参数:
      level - the level of the message
      t - the throwable to log