How to register sql in grails 1.3.7

I am trying to configure the logs for sql in grails with logSql = true in the data source (test env) but nothing is displayed in the test output.

I read this post, but it does not work.

How to log SQL queries in Grails

thank

+5
source share
1 answer

We did it at Config.groovy,

log4j = {
// ... whatever

    debug    'org.hibernate.SQL',
             'org.hibernate.transaction' // optionally
}

Log4j is configured differently with Grails 1.1.

+9
source

All Articles