Package weka.core.logging
Class Logger
java.lang.Object
weka.core.logging.Logger
- All Implemented Interfaces:
RevisionHandler
- Direct Known Subclasses:
ConsoleLogger
Abstract superclass for all loggers.
- Version:
- $Revision: 11646 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the minimum level log messages must have in order to appear in the log.static Logger
Returns the singleton instance of the logger.static void
log
(Logger.Level level, String msg) Logs the given message under the given level.static void
log
(Logger.Level level, 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
getRevision
-
Field Details
-
PROPERTIES_FILE
the properties file.- See Also:
-
-
Constructor Details
-
Logger
public Logger()Initializes the logger.
-
-
Method Details
-
getSingleton
Returns the singleton instance of the logger.- Returns:
- the logger instance
-
log
Logs the given message under the given level.- Parameters:
level
- the level of the messagemsg
- the message to log
-
log
Logs the given message under the given level.- Parameters:
level
- the level of the messaget
- the throwable to log
-
getMinLevel
Returns the minimum level log messages must have in order to appear in the log.- Returns:
- the level
-