LogFactory obtains ClassLoader-specific LoggerContext for Log4J

Issue: SPR-14512
This commit is contained in:
Juergen Hoeller
2017-04-07 16:34:12 +02:00
parent 32bda47ed1
commit ea5cb26d75

View File

@@ -172,7 +172,8 @@ public abstract class LogFactory {
private static final String FQCN = Log4jLog.class.getName();
private static final LoggerContext loggerContext = LogManager.getContext();
private static final LoggerContext loggerContext =
LogManager.getContext(Log4jLog.class.getClassLoader(), false);
private final ExtendedLogger logger;