On Mon, Feb 7, 2011 at 9:38 AM, Gian Marco Gherardi <[email protected]> wrote: > Hi, i'm evaluating Guice for use in one of my projects. > Looking at the code, i see that Guice uses JUL for logging, but i'm using > SLF4J so i want to have Guice logging to SLF4J. > With jul-to-slf4j library seems that this is possible, the configuration is > this:
[snip] > > The questions are: > Is this configuration correct? Probably not, because you never call the install method on the SLF4JBridgeHandler. Read the fine documentation at http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html and bear in mind the performance warning at http://www.slf4j.org/legacy.html#jul-to-slf4j > Is there a better way to do this? Your context listener is an appropriate location to do this, assuming you are using Guice Servlet as you appear to be. > Why not including this in Guice documentation? Because SLF4J is not related to Guice in any way. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
