File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
I agree. Here's the link:
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-2014