diff --git a/spring-core/src/main/java/org/apache/commons/logging/LogFactory.java b/spring-core/src/main/java/org/apache/commons/logging/LogFactory.java index d5a755dcf5..3477bb4448 100644 --- a/spring-core/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/spring-core/src/main/java/org/apache/commons/logging/LogFactory.java @@ -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;