Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
log property in util class
Joined: Feb 26, 2005
Nov 12, 2009 09:06:38
I have a util class under src/groovy directory. I am not getting the automatically injected log property here. What is the best way to get that property in
or groovy classes.
I have tried Logger.getRootLogger() but it returns null. Any ideas?
Joined: Jul 11, 2001
Nov 12, 2009 10:07:45
You should just do Logger.getLogger(getClass());
GenRocket - Experts at Building Test Data
subject: log property in util class
Groovy Versus Java for the authors of Groovy in Action
Call groovy program from Java
Question on the Groovy book
Problem With cactus testing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015