diff options
Diffstat (limited to 'sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml')
-rw-r--r-- | sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml b/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml index 585dc31806e..ee7555ad3ee 100644 --- a/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml +++ b/sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml @@ -7,8 +7,36 @@ </encoder> </appender> - <!-- Include definition of loggers. The appender STDOUT is not shared in sonar-batch because - format is slightly different between Maven and Ant logs --> - <include resource="/org/sonar/batch/logback-base.xml"/> + <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> + + <!-- set INFO to activate SQL statistics. NOT RECOMMENDED --> + <logger name="org.sonar.DBSTATISTICS"> + <level value="ERROR"/> + </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>
\ No newline at end of file |