diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-17 14:53:25 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-19 12:02:11 +0100 |
commit | 6adb553ddc2711cb88632be9bd96b4e91c51082e (patch) | |
tree | ac6c1d4fb0ed1d465b1764f01bec593e487a7094 /server/sonar-process | |
parent | 97fad28fd91b49710bd39217ad7f3929e0c2661e (diff) | |
download | sonarqube-6adb553ddc2711cb88632be9bd96b4e91c51082e.tar.gz sonarqube-6adb553ddc2711cb88632be9bd96b4e91c51082e.zip |
SONAR-5700 ability to change level of loggers of 3rd-party libraries
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java b/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java index f45426f67b7..dc33e3c0b6c 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java +++ b/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java @@ -204,8 +204,7 @@ public class LogbackHelper { FixedWindowRollingPolicy rollingPolicy = new FixedWindowRollingPolicy(); rollingPolicy.setContext(context); rollingPolicy.setFileNamePattern(StringUtils.replace(filePath, filenamePrefix + ".log", filenamePrefix + ".%i.log")); - rollingPolicy.setMaxIndex(1); - rollingPolicy.setMaxIndex(maxFiles); + rollingPolicy.setMinIndex(1); rollingPolicy.setMaxIndex(maxFiles); rollingPolicy.setParent(appender); rollingPolicy.start(); |