Skip to content

Instantly share code, notes, and snippets.

@cherniag
Created April 27, 2015 12:36
Show Gist options
  • Save cherniag/0833637137950ba03e0a to your computer and use it in GitHub Desktop.
Save cherniag/0833637137950ba03e0a to your computer and use it in GitHub Desktop.
Hibernate log config
http://docs.jboss.org/hibernate/core/3.5/reference/en/html/session-configuration.html#configuration-logging
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. This is a lot of information but it is useful for troubleshooting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment