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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Dec 15 18:29:04 CET 2009


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





--- Comment #20 from Joern Huxhorn <joern at huxhorn.de>  2009-12-15 18:29:04 ---
I agree with Ceki.
The getEnclosingLogger(..) syntax is quite strange.

You could always use
LoggerFactory.getLogger(new Object(){}.getClass().getEnclosingClass());
as you said yourself.

Changing the topic a bit:
Does anyone know enough about annotations to be able to tell me if something
like

@Logger
private final Logger logger;

would be able to initialize logger appropriately? I've never written an
annotation myself so I don't know.


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