aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/musichub/util/LogHandler.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/musichub/util/LogHandler.java b/src/main/java/musichub/util/LogHandler.java
index f6522f5..988b149 100644
--- a/src/main/java/musichub/util/LogHandler.java
+++ b/src/main/java/musichub/util/LogHandler.java
@@ -26,6 +26,13 @@ public final class LogHandler {
throw new AssertionError("You just can't instantiate this class.");
}
+ /**
+ * Method that writes a log message to spoteezer.log
+ *
+ * @param msg the message to write
+ * @param type the type of log
+ * @throws IOException if the file's not there
+ */
public static void write(String msg, String type) throws IOException {
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
@@ -42,6 +49,11 @@ public final class LogHandler {
}
+ /**
+ * Method that prints the content of spoteezer.log
+ *
+ * @throws IOException if the file's not there
+ */
public static void read() throws IOException {
Path fileName = Path.of("log/spoteezer.log");
ort.pdf?id=b5072cf8159adb16ff1826dce27bccb7ab41c141&follow=1'>Beginning the reportClyhtsuriva2-0/+67 2020-12-25comment on PlaylistClyhtsuriva1-1/+1 2020-12-24Playlist : sort by name and delete optionClyhtsuriva6-40/+128 2020-12-24Finishing album and starting playlistsClyhtsuriva3-16/+102 2020-12-23Implementing AlbumClyhtsuriva3-17/+155 Adding list, extract and save support to albums as well as addAlbum for the albums. Starting the method to add songs to an album as well. 2020-12-22SimplifyingClyhtsuriva2-129/+81 I'm creating methods in jMusicHub to simplify the work I'l will be doing to add Albums and Playlists commands such as list, extract and save. 2020-12-19Adding AudioBooksClyhtsuriva7-48/+225 Finishing AudioBook class, adding list and save for the audiobooks. Adding extract method for both audiobooks and songs. Resolving the id incremention issue. 2020-12-11(De)Serialization of the songsClyhtsuriva2-42/+63 Serialization and Deser now work fine for the songs. We're able to store arrays. 2020-12-11Getting serialization working with a songClyhtsuriva3-7/+36 2020-12-11adding Serialization interface and methodsClyhtsuriva6-59/+63 2020-12-07Big updateMasfehico6-16/+99 Implementing the function to add songs. Cleaning a bit everywhere as well. 2020-12-07cleaning and adding stuff in playlistMasfehico3-2/+20 2020-12-07Updating song and audiobook accordingly to the last commitMasfehico2-8/+8 2020-12-07Adding the enum classesMasfehico3-0/+9 2020-12-07Updating song, audiobook and musical elements's sets and getsMasfehico3-5/+23 2020-12-07Finishing MusicalElement.javaMasfehico1-6/+11 2020-11-23Cleaning upMasfehico2-30/+0 2020-11-23Deleting the CSVSMasfehico5-3669/+0 2020-11-23Minor testing changesMasfehico7-43/+63 2020-11-23Musical elements updated and jMusicHub basic creationMasfehico2-0/+0 2020-11-23Musical elements updated and jMusicHub basic creationMasfehico4-3/+74 2020-11-21README.md updatedMasfehico1-3/+1 2020-11-19Started Song and MusicalElementMasfehico5-0/+190 2020-11-18Added CSVsMasfehico9-102/+3756 I added some csvs by exracting my ampache mysql DB. Also started to write on the README file already. 2020-11-18Firs filesMasfehico8-0/+103 Pushing the empty java files I'll be using with some csvs. 2020-11-17LICENSE updatedMasfehico1-68/+81