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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Apr 2 13:46:08 CEST 2010


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





--- Comment #37 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com>  2010-04-02 13:46:07 ---
(In reply to comment #36)

>   private @Inject Logger log;

I finally got this to work (the instructions are incorrect - it is the
weld-extensions that provides this).

The default is to use the name of the current class.  This can be overridden
with

> private @Inject @Category("foo") Logger log;

The LoggerFactory class and the Category class are at

http://anonsvn.jboss.org/repos/weld/extensions/trunk/src/main/java/org/jboss/weld/extensions/log/

and are about 10 lines of actual code each, and under the Apache license.  


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