views:

101

answers:

1

Hi

I want to log in the console or in a file, all the queries that Grails do, to check performance.

I had configured this without success.

Any idea would help.

+2  A: 

Setting

datasource {
...
logSql = true
}

in DataSource.groovy (as per these instructions) was enough to get it working in my environment. It seems that parts of the FAQ are out of date (e.g. "the many-to-many columns backwards" question) so this might also be something that changed in the meantime.

Tomislav Nakic-Alfirevic
It works, thank you.
damian