title: JPA + Hibernate + java.util.logging (JDK logging): show sql queries with arguments
body: <p>We are using JPA with Hibernate, and because we use the java build-in logging for our project, we have routed Hibernate to use java.util.logging (JDK logging) as well (by including slf4j-jdk14-1.6.4.jar). Now there is a problem with showing the actual queries that hibernate/JPA performs. We have added this to our persistence.xml:</p>
  
  <pre><code>&lt;property name="hibernate.show_sql" value="true" /&gt;
  </code></pre>
  
  <p>That helps a bit, showing some more queries when inserting stuff. However, the question marks still remain. Other answers suggest to set the org.hibernate.type to TRACE in order to solve this, but that is a log4j specific suggestion. How can we actually show all arguments that hibernate uses? Thanks!</p>