public abstract class Logger extends java.lang.Object implements RevisionHandler
Modifier and Type | Class and Description |
---|---|
static class |
Logger.Level
The logging level.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTIES_FILE
the properties file.
|
Constructor and Description |
---|
Logger()
Initializes the logger.
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRevision
public static final java.lang.String PROPERTIES_FILE
public Logger.Level getMinLevel()
public static Logger getSingleton()
public static void log(Logger.Level level, java.lang.String msg)
level
- the level of the messagemsg
- the message to logpublic static void log(Logger.Level level, java.lang.Throwable t)
level
- the level of the messaget
- the throwable to log