http://bugzilla.slf4j.org/show_bug.cgi?id=163
--- Comment #36 from Thorbjørn Ravn Andersen <[email protected]> 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. _______________________________________________ slf4j-dev mailing list [email protected] http://qos.ch/mailman/listinfo/slf4j-dev
