diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-24 14:41:57 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-24 18:37:49 +0200 |
commit | 82bfce17f3ae127ead79f58fa2a5fdb4354f7208 (patch) | |
tree | c73b5d70da342ce0a436f6f582190a8e03a76182 /sonar-application/src | |
parent | ea5346d4752dea260d832b39cf2ae45d395553f2 (diff) | |
download | sonarqube-82bfce17f3ae127ead79f58fa2a5fdb4354f7208.tar.gz sonarqube-82bfce17f3ae127ead79f58fa2a5fdb4354f7208.zip |
fixed creating log files during tests
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/resources/org/sonar/application/logback.xml | 23 |
1 files changed, 23 insertions, 0 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 3d60682b514..1dc3bd67875 100644 --- a/sonar-application/src/main/resources/org/sonar/application/logback.xml +++ b/sonar-application/src/main/resources/org/sonar/application/logback.xml @@ -9,6 +9,24 @@ <configuration debug="false"> <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/> + <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <File>${sonar.path.logs}/logs/sonar.log</File> + <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> + <param name="FileNamePattern" value="${sonar.path.logs}/logs/sonar.%i.log"/> + <param name="MinIndex" value="1"/> + <param name="MaxIndex" value="3"/> + </rollingPolicy> + <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> + <param name="MaxFileSize" value="5MB"/> + </triggeringPolicy> + <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> + <!-- Use %d{yyyy.MM.dd HH:mm:ss.SSS} to display milliseconds --> + <pattern> + %d{yyyy.MM.dd HH:mm:ss} %-5level [%logger{20}] %X %msg%n + </pattern> + </encoder> + </appender> + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern> @@ -17,6 +35,11 @@ </encoder> </appender> + + <logger name="console" additivity="false"> + <appender-ref ref="CONSOLE"/> + </logger> + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern> |