Align test logging config with latest change in Spring Framework
See spring-projects/spring-framework@ea5cb26d75
This commit is contained in:
parent
bf333b7e4e
commit
858bd8554d
|
@ -457,7 +457,7 @@ public class ConfigFileApplicationListenerTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void withDebugLogging(Runnable runnable) {
|
private void withDebugLogging(Runnable runnable) {
|
||||||
LoggerContext loggingContext = (LoggerContext) LogManager.getContext(true);
|
LoggerContext loggingContext = (LoggerContext) LogManager.getContext(false);
|
||||||
org.apache.logging.log4j.core.config.Configuration configuration = loggingContext
|
org.apache.logging.log4j.core.config.Configuration configuration = loggingContext
|
||||||
.getConfiguration();
|
.getConfiguration();
|
||||||
configuration.addLogger(ConfigFileApplicationListener.class.getName(),
|
configuration.addLogger(ConfigFileApplicationListener.class.getName(),
|
||||||
|
|
Loading…
Reference in New Issue