Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From <a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html#configuration-logging" rel="noreferrer">http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html#configuration-logging</a></p> <p>Here's the list of logger categories:</p> <pre><code>Category Function org.hibernate.SQL Log all SQL DML statements as they are executed org.hibernate.type Log all JDBC parameters org.hibernate.tool.hbm2ddl Log all SQL DDL statements as they are executed org.hibernate.pretty Log the state of all entities (max 20 entities) associated with the session at flush time org.hibernate.cache Log all second-level cache activity org.hibernate.transaction Log transaction related activity org.hibernate.jdbc Log all JDBC resource acquisition org.hibernate.hql.ast.AST Log HQL and SQL ASTs during query parsing org.hibernate.secure Log all JAAS authorization requests org.hibernate Log everything (a lot of information, but very useful for troubleshooting) </code></pre> <p>Formatted for pasting into a log4j XML configuration file:</p> <pre><code>&lt;!-- Log all SQL DML statements as they are executed --&gt; &lt;Logger name="org.hibernate.SQL" level="debug" /&gt; &lt;!-- Log all JDBC parameters --&gt; &lt;Logger name="org.hibernate.type" level="debug" /&gt; &lt;!-- Log all SQL DDL statements as they are executed --&gt; &lt;Logger name="org.hibernate.tool.hbm2ddl" level="debug" /&gt; &lt;!-- Log the state of all entities (max 20 entities) associated with the session at flush time --&gt; &lt;Logger name="org.hibernate.pretty" level="debug" /&gt; &lt;!-- Log all second-level cache activity --&gt; &lt;Logger name="org.hibernate.cache" level="debug" /&gt; &lt;!-- Log transaction related activity --&gt; &lt;Logger name="org.hibernate.transaction" level="debug" /&gt; &lt;!-- Log all JDBC resource acquisition --&gt; &lt;Logger name="org.hibernate.jdbc" level="debug" /&gt; &lt;!-- Log HQL and SQL ASTs during query parsing --&gt; &lt;Logger name="org.hibernate.hql.ast.AST" level="debug" /&gt; &lt;!-- Log all JAAS authorization requests --&gt; &lt;Logger name="org.hibernate.secure" level="debug" /&gt; &lt;!-- Log everything (a lot of information, but very useful for troubleshooting) --&gt; &lt;Logger name="org.hibernate" level="debug" /&gt; </code></pre> <p>NB: Most of the loggers use the DEBUG level, however org.hibernate.type uses TRACE. In previous versions of Hibernate org.hibernate.type also used DEBUG, but as of Hibernate 3 you must set the level to TRACE (or ALL) in order to see the JDBC parameter binding logging.</p> <p>And a category is specified as such:</p> <pre><code>&lt;logger name="org.hibernate"&gt; &lt;level value="ALL" /&gt; &lt;appender-ref ref="FILE"/&gt; &lt;/logger&gt; </code></pre> <p>It must be placed before the root element.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload