From 42411e4a26461229c6bca6e89ca55e98a80f5a4e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 30 九月 2021 18:08:17 +0800 Subject: [PATCH] bug修改 --- fanli/src/main/java/com/yeshi/fanli/log/LogManager.java | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/log/LogManager.java b/fanli/src/main/java/com/yeshi/fanli/log/LogManager.java index 16a66b6..7d9b2aa 100644 --- a/fanli/src/main/java/com/yeshi/fanli/log/LogManager.java +++ b/fanli/src/main/java/com/yeshi/fanli/log/LogManager.java @@ -1,15 +1,15 @@ -package com.yeshi.fanli.log; - -import java.util.HashMap; -import java.util.Map; - -public class LogManager { - private static Map<LogType, org.apache.logging.log4j.Logger> logMap = new HashMap<>(); - - public static org.apache.logging.log4j.Logger getLogger(LogType logType) { - if (logMap.get(logType) == null) - logMap.put(logType, org.apache.logging.log4j.LogManager.getLogger(logType.name())); - return logMap.get(logType); - } - -} +package com.yeshi.fanli.log; + +import java.util.HashMap; +import java.util.Map; + +public class LogManager { + private static Map<LogType, org.apache.logging.log4j.Logger> logMap = new HashMap<>(); + + public static org.apache.logging.log4j.Logger getLogger(LogType logType) { + if (logMap.get(logType) == null) + logMap.put(logType, org.apache.logging.log4j.LogManager.getLogger(logType.name())); + return logMap.get(logType); + } + +} -- Gitblit v1.8.0