diff options
Diffstat (limited to 'sonar-scanner-engine/src/test/resources/logback-test.xml')
-rw-r--r-- | sonar-scanner-engine/src/test/resources/logback-test.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/test/resources/logback-test.xml b/sonar-scanner-engine/src/test/resources/logback-test.xml new file mode 100644 index 00000000000..da6be3344a2 --- /dev/null +++ b/sonar-scanner-engine/src/test/resources/logback-test.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<configuration debug="false"> + + <!-- + ONLY FOR UNIT TESTS + --> + + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{HH:mm:ss.SSS} %-5level - %msg%n</pattern> + </encoder> + </appender> + + <!-- BeanUtils generate to many DEBUG logs when sonar.verbose is set --> + <logger name="org.apache.commons.beanutils.converters"> + <level value="WARN"/> + </logger> + + <!-- sonar.showSql --> + <!-- see also org.sonar.db.MyBatis#configureLogback() --> + <logger name="org.mybatis"> + <level value="WARN"/> + </logger> + <logger name="org.apache.ibatis"> + <level value="WARN"/> + </logger> + <logger name="java.sql"> + <level value="WARN"/> + </logger> + <logger name="java.sql.ResultSet"> + <level value="WARN"/> + </logger> + <logger name="PERSISTIT"> + <level value="WARN"/> + </logger> + + <root> + <level value="INFO"/> + <appender-ref ref="STDOUT"/> + </root> + +</configuration> |