Package it.unitn.disi.ds1.qtop
Class Logger
java.lang.Object
it.unitn.disi.ds1.qtop.Logger
Logger class to log messages to the console and to files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Logger
Singleton pattern to get the single instance of Logger.void
log
(Utils.LogLevel level, String message) Log the message at the specified log level.void
setLogLevel
(Utils.LogLevel level) Set the log level.
-
Method Details
-
getInstance
Singleton pattern to get the single instance of Logger.- Returns:
- the Logger instance
-
setLogLevel
Set the log level.- Parameters:
level
- level to set
-
log
Log the message at the specified log level.- Parameters:
level
- log levelmessage
- log message
-