aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-maven-plugin
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-10-10 11:02:26 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-10-10 11:02:53 +0200
commitd7b95d299268535ab96ba9224aecb9bbd6a244b2 (patch)
tree57098cf0dc2ad317ea1561ce69f995a0ab4d2901 /sonar-maven-plugin
parent2800245cbd33f1932845276d3e6ea71c66da4f95 (diff)
downloadsonarqube-d7b95d299268535ab96ba9224aecb9bbd6a244b2.tar.gz
sonarqube-d7b95d299268535ab96ba9224aecb9bbd6a244b2.zip
SONAR-2719 support Maven 3
Diffstat (limited to 'sonar-maven-plugin')
-rw-r--r--sonar-maven-plugin/src/main/resources/org/sonar/maven/logback.xml34
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