Package musichub.util

Class LogHandler

java.lang.Object
musichub.util.LogHandler

public final class LogHandler extends Object
Class offering a log writing method.
Version:
1.0
Author:
Aimeric ADJUTOR
  • Constructor Details

    • LogHandler

      public LogHandler()
      Method that just throws an AssertionError if the class is called
      Throws:
      AssertionError - you can't instantiate this class
  • Method Details

    • write

      public static void write(String msg, String type) throws IOException
      Method that writes a log message to spoteezer.log
      Parameters:
      msg - the message to write
      type - the type of log
      Throws:
      IOException - if the file's not there
    • read

      public static void read() throws IOException
      Method that prints the content of spoteezer.log
      Throws:
      IOException - if the file's not there