I try to configure logs for sql in grails with logSql=true in datasource (test env) but nothing is displayed in test output.
I read this post but It's not working.
How to log SQL statements in Grails
Thanks
I try to configure logs for sql in grails with logSql=true in datasource (test env) but nothing is displayed in test output.
I read this post but It's not working.
How to log SQL statements in Grails
Thanks
We did it in Config.groovy,
log4j = {
// ... whatever
debug 'org.hibernate.SQL',
'org.hibernate.transaction' // optionally
}
Log4j is configured differently since Grails 1.1.