Grails logging class names

I have recently dived into Grails’ logging features. It is simple mechanism but I stumbled upon a problem with class names. If You want to log behaviour in controllers, domains or services – You have to prefix class name with prefix grails.application. So when I tried to log my services i should have write something like this:

warn   ''

Instead of:

warn   'com.wordpress.chlebik.MyClass'

The truth is that documentation shows that in code samples – next time – read the manual stupid 😉


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s