diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-10-09 21:59:39 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-10-09 22:31:55 +0200 |
commit | b98f0e47c293c77dfee8b2b96cce450cbf540a20 (patch) | |
tree | 7bbb71b6d8a48c87528524b6e43534482a10b4fc /sonar-batch | |
parent | b8135c03e29c0cf49603435e598039a018851f41 (diff) | |
download | sonarqube-b98f0e47c293c77dfee8b2b96cce450cbf540a20.tar.gz sonarqube-b98f0e47c293c77dfee8b2b96cce450cbf540a20.zip |
SONAR-2719 add timestamp to maven logs
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/resources/org/sonar/batch/logback-base.xml | 33 | ||||
-rw-r--r-- | sonar-batch/src/main/resources/org/sonar/batch/logback.xml | 16 |
2 files changed, 43 insertions, 6 deletions
diff --git a/sonar-batch/src/main/resources/org/sonar/batch/logback-base.xml b/sonar-batch/src/main/resources/org/sonar/batch/logback-base.xml new file mode 100644 index 00000000000..618c62a74d5 --- /dev/null +++ b/sonar-batch/src/main/resources/org/sonar/batch/logback-base.xml @@ -0,0 +1,33 @@ +<included> + <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> +</included>
\ No newline at end of file diff --git a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml index 91b34037ace..2e65d27a617 100644 --- a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml +++ b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml @@ -1,11 +1,16 @@ <?xml version="1.0" encoding="UTF-8" ?> - <configuration debug="false"> + <!-- + This file is directly loaded by Sonar Ant Task 1.1 and Sonar Runner 1.1. + Inclusion of logback-base.xml is not supported by these 2 versions, so loggers must + be duplicated. + --> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> - <layout class="ch.qos.logback.classic.PatternLayout"> - <pattern>[%level] %X{module} %msg%n</pattern> - </layout> + <encoder> + <pattern>%d{HH:mm:ss.SSS} %-5level %msg%n</pattern> + </encoder> </appender> <logger name="org.hibernate"> @@ -35,10 +40,9 @@ <level value="ERROR"/> </logger> - <!-- see org.sonar.mojo.InternalMojo#initLogging --> <root> <level value="${ROOT_LOGGER_LEVEL}"/> <appender-ref ref="STDOUT"/> </root> - + </configuration>
\ No newline at end of file |