From 6b86e9ff870eaf93ad503b9a5650348a4608a072 Mon Sep 17 00:00:00 2001 From: Tueem Date: Thu, 19 Dec 2024 19:41:49 +0100 Subject: [PATCH] add initialization Logging --- lib/src/main/java/net/tomatentum/marinara/Marinara.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/main/java/net/tomatentum/marinara/Marinara.java b/lib/src/main/java/net/tomatentum/marinara/Marinara.java index 0896858..c1be562 100644 --- a/lib/src/main/java/net/tomatentum/marinara/Marinara.java +++ b/lib/src/main/java/net/tomatentum/marinara/Marinara.java @@ -1,10 +1,15 @@ package net.tomatentum.marinara; +import org.apache.logging.log4j.Logger; + import net.tomatentum.marinara.registry.InteractionCheckRegistry; import net.tomatentum.marinara.registry.InteractionRegistry; +import net.tomatentum.marinara.util.LoggerUtil; import net.tomatentum.marinara.wrapper.LibraryWrapper; public class Marinara { + + private Logger logger = LoggerUtil.getLogger(getClass()); public static Marinara load(LibraryWrapper wrapper) { return new Marinara(wrapper); @@ -18,6 +23,7 @@ public class Marinara { this.wrapper = wrapper; this.registry = new InteractionRegistry(this); this.checkRegistry = new InteractionCheckRegistry(); + logger.info("Marinara loaded successfully!"); } public InteractionRegistry getRegistry() {