diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-11-28 16:55:57 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-12-01 12:29:39 +0100 |
commit | da49cde8ba5316541f4fe343ccd5fc66209fbd89 (patch) | |
tree | aa2fd4b68dbbfd84105a7755f53c7fda5c2cab73 /server/sonar-search | |
parent | 23a030e194b0b0c58c9475c13a39493cf6c0dc8f (diff) | |
download | sonarqube-da49cde8ba5316541f4fe343ccd5fc66209fbd89.tar.gz sonarqube-da49cde8ba5316541f4fe343ccd5fc66209fbd89.zip |
SONAR-8335 move RootLoggerConfig out of LogbackHelper
Diffstat (limited to 'server/sonar-search')
-rw-r--r-- | server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java index 5d3e857bede..38e26b7621a 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java @@ -23,8 +23,9 @@ import ch.qos.logback.classic.LoggerContext; import org.sonar.process.logging.LogbackHelper; import org.sonar.process.ProcessId; import org.sonar.process.Props; +import org.sonar.process.logging.RootLoggerConfig; -import static org.sonar.process.logging.LogbackHelper.RootLoggerConfig.newRootLoggerConfigBuilder; +import static org.sonar.process.logging.RootLoggerConfig.newRootLoggerConfigBuilder; public class SearchLogging { @@ -34,7 +35,7 @@ public class SearchLogging { LoggerContext ctx = helper.getRootContext(); ctx.reset(); - LogbackHelper.RootLoggerConfig config = newRootLoggerConfigBuilder().setProcessId(ProcessId.ELASTICSEARCH).build(); + RootLoggerConfig config = newRootLoggerConfigBuilder().setProcessId(ProcessId.ELASTICSEARCH).build(); String logPattern = helper.buildLogPattern(config); helper.configureGlobalFileLog(props, config, logPattern); |