At 10:51 AM 11/4/2005 -0800, you wrote:
>Is there any difference, advantage, etc. by doing
>
>        Logger logger = Logger.getLogger(MyClass.class);
>
>versus doing
>
>        Logger logger = Logger.getLogger(MyClass.class.getName());
>
>I've seen it both ways in documentation and examples and both seem to
>work the same way.
>

You're right, there's really no difference. However, if you are going to use the Class to name your logger instead of the object instance, then you probably ought to make your loggers "private static final".

Jake



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to