Because of https://jira.qos.ch/browse/LOGBACK-1537 it is not possible to use an include + configuring Logback
manually via classpath loading without having very verbose logs appearing at startup.
Duplicated the shared content in each log config file to fix the issue.
+++ /dev/null
-<!-- This file is shared between the old bootstrapping entry point and new bootstrapping -->
-<included>
- <!-- BeanUtils generate too many DEBUG logs when sonar.verbose is set -->
- <logger name="org.apache.commons.beanutils.converters" level="WARN"/>
-
- <!-- FileSnapshot generate too many DEBUG logs when sonar.verbose is set -->
- <logger name="org.eclipse.jgit.internal.storage.file" level="INFO"/>
-
- <!-- Spring generates too many DEBUG logs when sonar.verbose is set -->
- <logger name="org.springframework" level="INFO"/>
-
- <!-- AbstractApplicationContext generate too verbose warning if warn is Enabled -->
- <logger name="org.springframework.context.annotation.AnnotationConfigApplicationContext" level="ERROR"/>
-
- <logger name="org.sonar.core.platform.PriorityBeanFactory" level="INFO"/>
-</included>
<!DOCTYPE configuration>
<!-- This logback configuration is used when the scanner engine is bootstrapped using the SonarScannerCli class. -->
-<configuration>
+<configuration scan="false">
<import class="ch.qos.logback.core.ConsoleAppender"/>
- <include resource="logback-shared.xml"/>
<appender name="STDOUT" class="ConsoleAppender">
<encoder class="org.sonar.scanner.bootstrap.ScannerLogbackEncoder"/>
<root level="info">
<appender-ref ref="STDOUT"/>
</root>
+
+ <!-- BeanUtils generate too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.apache.commons.beanutils.converters" level="WARN"/>
+
+ <!-- FileSnapshot generate too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.eclipse.jgit.internal.storage.file" level="INFO"/>
+
+ <!-- Spring generates too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.springframework" level="INFO"/>
+
+ <!-- AbstractApplicationContext generate too verbose warning if warn is Enabled -->
+ <logger name="org.springframework.context.annotation.AnnotationConfigApplicationContext" level="ERROR"/>
+
+ <logger name="org.sonar.core.platform.PriorityBeanFactory" level="INFO"/>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="false">
- <include resource="logback-shared.xml"/>
-
<!--
This file is loaded by bootstrappers like Ant Task and Java Runner.
<appender-ref ref="STDOUT"/>
</root>
+ <!-- BeanUtils generate too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.apache.commons.beanutils.converters" level="WARN"/>
+
+ <!-- FileSnapshot generate too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.eclipse.jgit.internal.storage.file" level="INFO"/>
+
+ <!-- Spring generates too many DEBUG logs when sonar.verbose is set -->
+ <logger name="org.springframework" level="INFO"/>
+
+ <!-- AbstractApplicationContext generate too verbose warning if warn is Enabled -->
+ <logger name="org.springframework.context.annotation.AnnotationConfigApplicationContext" level="ERROR"/>
+
+ <logger name="org.sonar.core.platform.PriorityBeanFactory" level="INFO"/>
+
</configuration>