+ +
+
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 Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
    +
    Method that just throws an AssertionError if the class is called
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static void
    + +
    +
    Method that prints the content of spoteezer.log
    +
    +
    static void
    +
    write​(String msg, + String type)
    +
    +
    Method that writes a log message to spoteezer.log
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    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
      +
      +
      +
    • +
    +
    +
  • +
+
+ +