From bf0022775d518273ef99d812f4cd9550ceb1c0ee Mon Sep 17 00:00:00 2001 From: tueem Date: Thu, 19 Dec 2024 13:30:36 +0100 Subject: [PATCH] add helper LoggerUtil method --- .../main/java/net/tomatentum/marinara/util/LoggerUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/main/java/net/tomatentum/marinara/util/LoggerUtil.java b/lib/src/main/java/net/tomatentum/marinara/util/LoggerUtil.java index 99c57cd..bf883db 100644 --- a/lib/src/main/java/net/tomatentum/marinara/util/LoggerUtil.java +++ b/lib/src/main/java/net/tomatentum/marinara/util/LoggerUtil.java @@ -17,4 +17,8 @@ public class LoggerUtil { return new SimpleLogger(name, Level.DEBUG, true, false, true, true, "yyyy-MM-dd HH:mm:ss.SSSZ", null, new PropertiesUtil(new Properties()), System.out); } + + public static Logger getLogger(Class clazz) { + return getLogger(clazz.getName()); + } }