[slf4j-dev] [Bug 163] Copy & paste of LoggerFactory.getLogger
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Thu Apr 1 13:37:09 CEST 2010
http://bugzilla.slf4j.org/show_bug.cgi?id=163
--- Comment #36 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com> 2010-04-01 13:37:08 ---
(In reply to comment #35)
> Michael Glauche has come up with a solution using Guice[1]. Given that Guice
> has or will have support for JSR 330, we could perhaps propose a "standardized"
> solution based on JSR 330.
I've now had an initial look on the Weld RI (lots and lots of magic...sigh)
You might find the Weld Logger extension interesting:
import org.slf4j.Logger;
import javax.inject.Inject;
public class Checkout {
private @Inject Logger log;
public void invoiceItems() {
ShoppingCart cart;
...
log.debug("Items invoiced for {}", cart);
}
}
http://docs.jboss.org/weld/reference/latest/en-US/html/extensions.html#d0e5733
--
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