diff options
-rw-r--r-- | server/sonar-search/src/main/resources/logback.xml | 7 | ||||
-rw-r--r-- | sonar-application/src/main/resources/logback.xml | 12 |
2 files changed, 14 insertions, 5 deletions
diff --git a/server/sonar-search/src/main/resources/logback.xml b/server/sonar-search/src/main/resources/logback.xml index 8b7efd9359a..0bf62cbef73 100644 --- a/server/sonar-search/src/main/resources/logback.xml +++ b/server/sonar-search/src/main/resources/logback.xml @@ -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 @@ -36,7 +41,7 @@ </appender> <root> - <level value="INFO"/> + <level value="DEBUG"/> <appender-ref ref="LOGFILE"/> <appender-ref ref="CONSOLE" /> </root> 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> |