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 LoggerSingleton pattern to get the single instance of Logger.voidlog(Utils.LogLevel level, String message) Log the message at the specified log level.voidsetLogLevel(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
-