Re: A default getLogger method

2009-01-27 Thread Brian Hawkins
You missed what I'm trying to do. I'm defining a static logger such as this: public class MyClass { private static final Logger myLogger = Logger.getLogger(MyClass.class); } But what I would like to do is this public class MyClass { private static final Logger myLogger = Logger.getLogger(); }

A default getLogger method

2009-01-26 Thread Brian Hawkins
I've liked the log4j Logger except for two things. The first is that I have to pass my class name to the logger when I get it, for example: private static Logger myLogger = Logger.getLogger(MyClass.class); This is fine but it is prone to cut and paste errors. A better solution is to add the fol