[slf4j-dev] [Bug 163] Copy & paste of LoggerFactory.getLogger

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Dec 15 20:56:53 CET 2009


http://bugzilla.slf4j.org/show_bug.cgi?id=163





--- Comment #24 from Joern Huxhorn <joern at huxhorn.de>  2009-12-15 20:56:52 ---
Just for the record:

I would *never* use
LoggerFactory.getLogger(new Object(){}.getClass().getEnclosingClass());
myself. I just said it *can* be used as stated in comment #3. ;)

Instead, I'd *always* use
LoggerFactory.getLogger(TheClass.class);
as I'm doing right now.

IDEA is filling in everything for me.

I have a LiveTemplate called "plog" that creates
private final Logger logger = ...

and another one called "flog" that creates
final Logger logger = ...
to be used in static methods.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list