diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-13 17:09:40 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-13 17:09:40 +0100 |
commit | 5be796e6040e5608a70e4dd53dadedd1dfd6ff76 (patch) | |
tree | d0b2ff7c87e6178f7c5df8ebbdde370e40eadfa0 /sonar-application/src | |
parent | 82e006da834823718fb6ac0b579dff772db2d599 (diff) | |
download | sonarqube-5be796e6040e5608a70e4dd53dadedd1dfd6ff76.tar.gz sonarqube-5be796e6040e5608a70e4dd53dadedd1dfd6ff76.zip |
SONAR-2959 add example to enable SQL logs on server-side
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/assembly/conf/logback.xml | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/sonar-application/src/main/assembly/conf/logback.xml b/sonar-application/src/main/assembly/conf/logback.xml index 7a2efd3b369..a380678fc9d 100644 --- a/sonar-application/src/main/assembly/conf/logback.xml +++ b/sonar-application/src/main/assembly/conf/logback.xml @@ -37,15 +37,15 @@ </encoder> </appender> - <!-- - Profiling of HTTP requests. Set level to DEBUG in order to log all the HTTP and SQL requests. - Example of command-line to get the HTTP requests with execution time greater than 10s : - grep 'rails Completed in [0-9]\{5,\}ms' < profiling.log - --> - <logger name="rails" additivity="false"> + <!-- + Profiling of HTTP requests. Set level to DEBUG in order to log all the HTTP and SQL requests. + Example of command-line to get the HTTP requests with execution time greater than 10s : + grep 'rails Completed in [0-9]\{5,\}ms' < profiling.log + --> + <logger name="rails" additivity="false"> <level value="WARN"/> <appender-ref ref="PROFILING_FILE"/> - </logger> + </logger> <logger name="org.hibernate.cache.ReadWriteCache"> @@ -57,12 +57,21 @@ <level value="ERROR"/> </logger> - <!-- set DEBUG to activate Hibernate SQL logs. NOT RECOMMENDED --> - <logger name="org.hibernate.SQL"> - <level value="ERROR"/> + <logger name="org.hibernate"> + <level value="WARN"/> </logger> - <logger name="org.hibernate"> + <!-- Display SQL requests and results by setting the following loggers to level DEBUG --> + <logger name="org.hibernate.SQL"> + <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> |