aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml
blob: 5d6bf58530ed35d4aaecb157c4211f757d2bbcc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="false">

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>[%level] [%d{HH:mm:ss.SSS}] %msg%n</pattern>
    </encoder>
  </appender>

  <logger name="org.hibernate">
    <level value="WARN"/>
  </logger>

  <!-- set DEBUG to activate SQL logs. NOT RECOMMENDED  -->
  <logger name="org.hibernate.SQL">
    <level value="ERROR"/>
  </logger>

  <!-- BeanUtils generate to many DEBUG logs when sonar.verbose is set -->
  <logger name="org.apache.commons.beanutils.converters">
    <level value="WARN"/>
  </logger>
  
  <logger name="net.sf.ehcache">
    <level value="WARN"/>
  </logger>

  <logger name="org.hibernate.cache.ReadWriteCache">
    <!-- removing "An item was expired by the cache while it was locked (increase your cache timeout)" msg -->
    <level value="ERROR"/>
  </logger>
  <logger name="org.hibernate.cache.EhCacheProvider">
    <!-- removing "org.hibernate.cache.EhCacheProvider - Could not find configuratio)" message -->
    <level value="ERROR"/>
  </logger>

  <root>
    <level value="${ROOT_LOGGER_LEVEL}"/>
    <appender-ref ref="STDOUT"/>
  </root>

</configuration>