aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search/src
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-08-17 17:26:14 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-05 14:24:12 +0200
commit72e202b73cffcedc1ca3cc7311008f2a39006d21 (patch)
treeeefa4271b6c7ac84c5c9c2d1fea42c5f81397698 /server/sonar-search/src
parentf513a71898b0ec20696140763ecffb37246212c0 (diff)
downloadsonarqube-72e202b73cffcedc1ca3cc7311008f2a39006d21.tar.gz
sonarqube-72e202b73cffcedc1ca3cc7311008f2a39006d21.zip
SONAR-9239 configure log4j to log as before in es.log
with support for loggers configuration through LogLevelConfig, all three rolling strategies (time, size and none) and almost the same log pattern (shortening of logger names is a big different in log4j)
Diffstat (limited to 'server/sonar-search/src')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchLogging.java2
1 files changed, 1 insertions, 1 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 e87b06307b4..adeab47a2d2 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
@@ -42,7 +42,7 @@ public class SearchLogging {
helper.configureGlobalFileLog(props, config, logPattern);
helper.configureForSubprocessGobbler(props, logPattern);
- helper.apply(LogLevelConfig.newBuilder().rootLevelFor(ProcessId.ELASTICSEARCH).build(), props);
+ helper.apply(LogLevelConfig.newBuilder(helper.getRootLoggerName()).rootLevelFor(ProcessId.ELASTICSEARCH).build(), props);
return ctx;
}