Logger (original) (raw)
java.lang.Object
- weka.core.logging.Logger
All Implemented Interfaces:
RevisionHandler
Direct Known Subclasses:
ConsoleLogger
public abstract class Logger
extends java.lang.Object
implements RevisionHandler
Abstract superclass for all loggers.
Version: Revision:4716Revision: 4716 Revision:4716
Author:
fracpete (fracpete at waikato dot ac dot nz)
Nested Class Summary
Nested Classes
Modifier and Type Class and Description static class Logger.Level The logging level. Field Summary
Fields
Modifier and Type Field and Description static java.lang.String PROPERTIES_FILE the properties file. Constructor Summary
Constructors
Constructor and Description Logger() Initializes the logger. Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type Method and Description Logger.Level getMinLevel() Returns the minimum level log messages must have in order to appear in the log. static Logger getSingleton() Returns the singleton instance of the logger. static void log(Logger.Level level, java.lang.String msg) Logs the given message under the given level. static void log(Logger.Level level, java.lang.Throwable t) Logs the given message under the given level. * ### Methods inherited from class java.lang.Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` * ### Methods inherited from interface weka.core.[RevisionHandler](../../../weka/core/RevisionHandler.html "interface in weka.core") `[getRevision](../../../weka/core/RevisionHandler.html#getRevision--)`
Field Detail
* #### PROPERTIES\_FILE public static final java.lang.String PROPERTIES_FILE the properties file. See Also: [Constant Field Values](../../../constant-values.html#weka.core.logging.Logger.PROPERTIES%5FFILE)
Constructor Detail
* #### Logger public Logger() Initializes the logger.
Method Detail
* #### getMinLevel public [Logger.Level](../../../weka/core/logging/Logger.Level.html "enum in weka.core.logging") getMinLevel() Returns the minimum level log messages must have in order to appear in the log. Returns: the level * #### getSingleton public static [Logger](../../../weka/core/logging/Logger.html "class in weka.core.logging") getSingleton() Returns the singleton instance of the logger. Returns: the logger instance * #### log public static void log([Logger.Level](../../../weka/core/logging/Logger.Level.html "enum in weka.core.logging") level, java.lang.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](../../../weka/core/logging/Logger.Level.html "enum in weka.core.logging") level, java.lang.Throwable t) Logs the given message under the given level. Parameters: `level` \- the level of the message `t` \- the throwable to log