Making Grails log a Rails log

Grails log is verbose… very verbose. I got used to the Rails one, especially for the stack traces. Most of the time I am not interested in hundreds of messages about Hibernate not being happy with the parameter I did pass to it. Most of the time the problem is on my side and I want to know which object is it and which line of code.

So, i did a small trick with egrep. I run the grails application using this command:

grails run-app | egrep -v "at [a-z]+"

Sometime I have to go to my log file to check more details, but over 80% this is more than enough.

Comments are closed.