Browse Source

LogFactory obtains ClassLoader-specific LoggerContext for Log4J

Issue: SPR-14512
pull/1382/head
Juergen Hoeller 8 years ago
parent
commit
ea5cb26d75
  1. 3
      spring-core/src/main/java/org/apache/commons/logging/LogFactory.java

3
spring-core/src/main/java/org/apache/commons/logging/LogFactory.java

@ -172,7 +172,8 @@ public abstract class LogFactory { @@ -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;

Loading…
Cancel
Save