From fd713fe1b2ae48cff3ee89d3b080490979e294a3 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sun, 6 Feb 2005 06:42:54 +0000 Subject: [PATCH] docd log categories git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@5578 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- reference/en/modules/configuration.xml | 66 ++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/reference/en/modules/configuration.xml b/reference/en/modules/configuration.xml index 569bcb2ccb..a54b7bcc61 100644 --- a/reference/en/modules/configuration.xml +++ b/reference/en/modules/configuration.xml @@ -1311,11 +1311,71 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]> We strongly recommend that you familiarize yourself with Hibernate's log messages. A lot of work has been put into making the Hibernate log as detailed as possible, without making it unreadable. It is an essential - troubleshooting device. Also don't forget to enable SQL logging as - described above (hibernate.show_sql), it is your first - step when looking for performance problems. + troubleshooting device. The most interesting log categories are the + following: + + Hibernate Log Categories + + + + + + 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.jdbc + Log all JDBC resource acquisition + + + org.hibernate.secure + Log all JAAS authorization requests + + + org.hibernate + + Log everything (a lot of information, but very useful for + troubleshooting). + + + + +
+ + + When developing applications with Hibernate, you should almost always work with + debug enabled for the category org.hibernate.SQL, + or, alternatively, the property hibernate.show_sql enabled. + + +