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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Dec 10 20:55:49 CET 2009


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


Thorbjørn Ravn Andersen <thorbjoern at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thorbjoern at gmail.com




--- Comment #4 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com>  2009-12-10 20:55:44 ---
I usually use just the non-static form, where you can use this.getClass() which
is easily cut-and-pasteable.  I also had a Eclipse template for new classes
containing a correct logger, but that didn't survive a reinstall.

Since the convention is so strong about the class name being the logger name, I
would find it easier to just supply an object instead of a claass and have that
used instead.

The LoggerFactory.getLogger(Foo.class) assignment often gets too long to fit on
a single line so it is broken when formatting.  I would like a less verbose
incarnation form.


-- 
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