diff options
author | Steve Marion <steve.marion@sonarsource.com> | 2024-08-23 10:50:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-08-23 20:02:33 +0000 |
commit | fa06371bf7d1f8cdef87dbba276348979e138677 (patch) | |
tree | 19f372d7be82864f341707570c815c1e2960e348 /sonar-core | |
parent | cdbb50ba7d3b3d160afe19bb74242374edd820b3 (diff) | |
download | sonarqube-fa06371bf7d1f8cdef87dbba276348979e138677.tar.gz sonarqube-fa06371bf7d1f8cdef87dbba276348979e138677.zip |
SONAR-22676 replace StatusPrinter by StatusPrinter2
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/Logback.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/Logback.java b/sonar-core/src/main/java/org/sonar/core/config/Logback.java index c327b2a2fa4..593bc6079a5 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/Logback.java +++ b/sonar-core/src/main/java/org/sonar/core/config/Logback.java @@ -22,7 +22,7 @@ package org.sonar.core.config; import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.joran.spi.JoranException; -import ch.qos.logback.core.util.StatusPrinter; +import ch.qos.logback.core.util.StatusPrinter2; import java.io.File; import java.io.FileInputStream; import java.io.IOException; @@ -39,6 +39,8 @@ import org.slf4j.LoggerFactory; */ public class Logback { + private static final StatusPrinter2 statusPrinter = new StatusPrinter2(); + private Logback() { // only statics } @@ -74,7 +76,7 @@ public class Logback { } finally { IOUtils.closeQuietly(input); } - StatusPrinter.printInCaseOfErrorsOrWarnings(lc); + statusPrinter.printInCaseOfErrorsOrWarnings(lc); } private static LoggerContext configureContext(LoggerContext context, Map<String, String> substitutionVariables) { |