From 1dce231b0f580c16dfc0c805e426580f20e2445f Mon Sep 17 00:00:00 2001 From: Gregor Date: Wed, 23 Oct 2019 18:55:35 +0200 Subject: [PATCH] Added new getLogger method to get new instance of logger for Class object --- .../src/main/java/com/kumuluz/ee/logs/LogManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/src/main/java/com/kumuluz/ee/logs/LogManager.java b/common/src/main/java/com/kumuluz/ee/logs/LogManager.java index 757f290..02ffd47 100644 --- a/common/src/main/java/com/kumuluz/ee/logs/LogManager.java +++ b/common/src/main/java/com/kumuluz/ee/logs/LogManager.java @@ -27,6 +27,16 @@ */ public class LogManager { + /** + * Returns Logger instance. Use this method for retrieval of Logger instances in your code. + * + * @param clazz Class to log + * @return Logger instance + */ + public static Logger getLogger(Class clazz) { + return LogUtil.getInstance().getLogInstance(clazz.getName()); + } + /** * Returns Logger instance. Use this method for retrieval of Logger instances in your code. *