aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-22 10:50:31 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-23 15:34:04 +0200
commitbf3c0236036a6ef3f13223dce54db3a2cbb7781a (patch)
tree5697d028b2b9bd603717fa838b871f5bb1299f55 /sonar-application
parentb06023948d7b18080e568414de3f64d2574121a3 (diff)
downloadsonarqube-bf3c0236036a6ef3f13223dce54db3a2cbb7781a.tar.gz
sonarqube-bf3c0236036a6ef3f13223dce54db3a2cbb7781a.zip
Each application logs into its own file.
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/src/main/resources/logback.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/sonar-application/src/main/resources/logback.xml b/sonar-application/src/main/resources/logback.xml
index 067d353bdd5..5a19d946cd5 100644
--- a/sonar-application/src/main/resources/logback.xml
+++ b/sonar-application/src/main/resources/logback.xml
@@ -9,7 +9,7 @@
<configuration debug="false">
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
- <appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${SONAR_HOME}/logs/sonar.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<param name="FileNamePattern" value="${SONAR_HOME}/logs/sonar.%i.log"/>
@@ -28,6 +28,11 @@
</appender>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>INFO</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>
%d{yyyy.MM.dd HH:mm:ss} %-5level %msg%n
@@ -35,8 +40,8 @@
</encoder>
</appender>
+
<logger name="console" additivity="false">
- <level value="INFO"/>
<appender-ref ref="CONSOLE"/>
</logger>
@@ -50,9 +55,8 @@
<root>
<level value="DEBUG"/>
+ <appender-ref ref="FILE"/>
<appender-ref ref="CONSOLE"/>
- <appender-ref ref="LOGFILE"/>
</root>
-
</configuration>