Tuesday, June 14, 2016

Grails log your hibernate queries

To log the Hibernate queries that your app is making merely add these to your logback.groovy
logger('org.hibernate.SQL', DEBUG, ['STDOUT'], false)
logger('org.hibernate.type', TRACE, ['STDOUT'], false)
The false eliminated duplicate entries

No comments:

Post a Comment