From 1f9bb0b02f646739bfbdfe9dc9e8ed15c86e4e52 Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Tue, 29 Nov 2016 13:48:00 +0100 Subject: SONAR-8335 make changing root level change level of all loggers --- sonar-application/src/main/java/org/sonar/application/AppLogging.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sonar-application/src/main/java/org/sonar') diff --git a/sonar-application/src/main/java/org/sonar/application/AppLogging.java b/sonar-application/src/main/java/org/sonar/application/AppLogging.java index 84d0b074b0f..284fef1466d 100644 --- a/sonar-application/src/main/java/org/sonar/application/AppLogging.java +++ b/sonar-application/src/main/java/org/sonar/application/AppLogging.java @@ -24,6 +24,7 @@ import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.ConsoleAppender; import ch.qos.logback.core.FileAppender; +import org.sonar.process.logging.LogLevelConfig; import org.sonar.process.logging.LogbackHelper; import org.sonar.process.ProcessId; import org.sonar.process.Props; @@ -127,7 +128,7 @@ class AppLogging { } else { configureWithWrapperWritingToFile(ctx); } - helper.configureRootLogLevel(props, ProcessId.APP); + helper.apply(LogLevelConfig.newBuilder().rootLevelFor(ProcessId.APP).build(), props); return ctx; } -- cgit v1.2.3