I try log some details in a namedQuery for a grails domain class but logging errors.
static namedQueries = {
firstThree {
if (booleanValue) {
log.trace "booleanValue = true"
eq ('bar', foo)
}
maxResults(3)
}
}
Error
No such property: log for class: grails.orm.HibernateCriteriaBuilder
How do I log in a criteria?