]> source.dussan.org Git - sonarqube.git/commitdiff
Log Hibernate/MyBatis SQL requests in development mode
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 16:28:47 +0000 (18:28 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 3 Oct 2012 16:35:57 +0000 (18:35 +0200)
sonar-server/src/dev/h2/conf/logback.xml
sonar-server/src/dev/mysql/conf/logback.xml
sonar-server/src/dev/postgresql/conf/logback.xml

index 6548deb530e1ec2d501b4170315b7facc95386ba..a6892222c8240010cf9c144b6323e0ecc8cb72d3 100644 (file)
@@ -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">
index 6548deb530e1ec2d501b4170315b7facc95386ba..a6892222c8240010cf9c144b6323e0ecc8cb72d3 100644 (file)
@@ -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">
index 6548deb530e1ec2d501b4170315b7facc95386ba..a6892222c8240010cf9c144b6323e0ecc8cb72d3 100644 (file)
@@ -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">