Class Logger

java.lang.Object
it.unitn.disi.ds1.qtop.Logger

public class Logger extends Object
Logger class to log messages to the console and to files.
  • Method Details

    • getInstance

      public static Logger getInstance()
      Singleton pattern to get the single instance of Logger.
      Returns:
      the Logger instance
    • setLogLevel

      public void setLogLevel(Utils.LogLevel level)
      Set the log level.
      Parameters:
      level - level to set
    • log

      public void log(Utils.LogLevel level, String message)
      Log the message at the specified log level.
      Parameters:
      level - log level
      message - log message