Groovy
Create your own Groovy type conversion
Do you want to coerce one type into another with an elegant keyword such as Groovy's as ?
@ArturoHerrero shows you how to do it. Must read for those who want to write elegant Groovy.
Grails
Grails 3 Book: A Practical Guide to Application Development
Recently @ObjectComputing questioned in Twitter. What would people like to see in Grails 3? Several people asked for a book.
@nulleric is making these wishes a reality. Read about Eric's motivation to write a Grails 3 book. Don't forget to subscribe to the mailing list to receive a notification once the book becomes available.
Set Log Level for Grails Artifacts
Do you writes println statements in your services because you are tired of writing log.info and not seeing anything? @mrhaki shows how to configure log levels for your Grails Artefacts. Explained for Grails 2 and 3.
Logging non Grails Artifacts
While discussing logging, @danieldbower hints in his blog post how to log from a none grails artifact.
You probably need to add to your classes a statement such as:
private static final log = LogFactory.getLog(this)
I wrote a blog post about it.
Grails Hibernate Logging
Knowing what SQL is being generated in your app can make the difference to keep performance under control.
@therealdanvega shows you who to log SQL, format it and see the actual parameters instead of pesky question marks.
â–¶ GORM Util - SQL Cleaner & logging
Back in Issue 31 I linked to GORM Util. A library created by @burtbeckwith to help you out with GORM.
Do you want to go one step further in your SQL inspection? Checkout his discussion about this topic in his last year Greach talk.
Comment
This issue is dedicated to logging. Put your log level in trace and continue reading
Groovy Calamari