diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-09-24 18:19:50 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-09-24 18:19:50 +0200 |
commit | 85c037c87a728edbefc0fd417d6cb89cab246e44 (patch) | |
tree | e3522ce24ff20fe3d3d0647bee363dd74e28fdf1 /sonar-application/src | |
parent | 410c98978ca7ee3c667dcbcffe4d3ec085c6e517 (diff) | |
download | sonarqube-85c037c87a728edbefc0fd417d6cb89cab246e44.tar.gz sonarqube-85c037c87a728edbefc0fd417d6cb89cab246e44.zip |
SONAR-5621 Merge server log files into a single one
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/resources/org/sonar/application/logback.xml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sonar-application/src/main/resources/org/sonar/application/logback.xml b/sonar-application/src/main/resources/org/sonar/application/logback.xml index e34156819f0..cbcd991ded9 100644 --- a/sonar-application/src/main/resources/org/sonar/application/logback.xml +++ b/sonar-application/src/main/resources/org/sonar/application/logback.xml @@ -14,25 +14,35 @@ <param name="MaxFileSize" value="10MB"/> </triggeringPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> - <pattern>%3.3logger %msg%n</pattern> + <pattern>%msg%n</pattern> + </encoder> + </appender> + + <appender name="APP" class="ch.qos.logback.core.ConsoleAppender"> + <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> + <pattern>%d{yyyy.MM.dd HH:mm:ss} %-5level app[%logger{20}] %msg%n</pattern> </encoder> </appender> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern> - app %d{yyyy.MM.dd HH:mm:ss} %-5level [%logger{20}] %msg%n + %msg%n </pattern> </encoder> </appender> - <logger name="console"> + <logger name="console" additivity="false"> <appender-ref ref="CONSOLE"/> </logger> + <logger name="gobbler" additivity="false"> + <appender-ref ref="LOGFILE"/> + </logger> + <root> <level value="INFO"/> - <appender-ref ref="LOGFILE"/> + <appender-ref ref="APP"/> </root> </configuration> |