diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-03 18:28:47 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-03 18:35:57 +0200 |
commit | 0001b90092c805c5c2d4a62b53fe9c86fef41b0d (patch) | |
tree | e6d0020159248a4fd8fd301bd52bf6e1d64e020d /sonar-server/src | |
parent | 1359b743a19c251e70961541906a1a71dbb46b5b (diff) | |
download | sonarqube-0001b90092c805c5c2d4a62b53fe9c86fef41b0d.tar.gz sonarqube-0001b90092c805c5c2d4a62b53fe9c86fef41b0d.zip |
Log Hibernate/MyBatis SQL requests in development mode
Diffstat (limited to 'sonar-server/src')
-rw-r--r-- | sonar-server/src/dev/h2/conf/logback.xml | 12 | ||||
-rw-r--r-- | sonar-server/src/dev/mysql/conf/logback.xml | 12 | ||||
-rw-r--r-- | sonar-server/src/dev/postgresql/conf/logback.xml | 12 |
3 files changed, 33 insertions, 3 deletions
diff --git a/sonar-server/src/dev/h2/conf/logback.xml b/sonar-server/src/dev/h2/conf/logback.xml index 6548deb530e..a6892222c82 100644 --- a/sonar-server/src/dev/h2/conf/logback.xml +++ b/sonar-server/src/dev/h2/conf/logback.xml @@ -9,8 +9,18 @@ </encoder> </appender> + <!-- Display SQL requests and results by setting the following loggers to level DEBUG --> <logger name="org.hibernate.SQL"> - <level value="ERROR"/> + <level value="DEBUG"/> + </logger> + <logger name="org.apache.ibatis"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql.ResultSet"> + <level value="DEBUG"/> </logger> <logger name="org.hibernate.cache.ReadWriteCache"> diff --git a/sonar-server/src/dev/mysql/conf/logback.xml b/sonar-server/src/dev/mysql/conf/logback.xml index 6548deb530e..a6892222c82 100644 --- a/sonar-server/src/dev/mysql/conf/logback.xml +++ b/sonar-server/src/dev/mysql/conf/logback.xml @@ -9,8 +9,18 @@ </encoder> </appender> + <!-- Display SQL requests and results by setting the following loggers to level DEBUG --> <logger name="org.hibernate.SQL"> - <level value="ERROR"/> + <level value="DEBUG"/> + </logger> + <logger name="org.apache.ibatis"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql.ResultSet"> + <level value="DEBUG"/> </logger> <logger name="org.hibernate.cache.ReadWriteCache"> diff --git a/sonar-server/src/dev/postgresql/conf/logback.xml b/sonar-server/src/dev/postgresql/conf/logback.xml index 6548deb530e..a6892222c82 100644 --- a/sonar-server/src/dev/postgresql/conf/logback.xml +++ b/sonar-server/src/dev/postgresql/conf/logback.xml @@ -9,8 +9,18 @@ </encoder> </appender> + <!-- Display SQL requests and results by setting the following loggers to level DEBUG --> <logger name="org.hibernate.SQL"> - <level value="ERROR"/> + <level value="DEBUG"/> + </logger> + <logger name="org.apache.ibatis"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql"> + <level value="DEBUG"/> + </logger> + <logger name="java.sql.ResultSet"> + <level value="DEBUG"/> </logger> <logger name="org.hibernate.cache.ReadWriteCache"> |