[slf4j-user] JUL to LOG4J

J G skinny_joey98 at hotmail.com
Fri Jul 24 18:34:01 CEST 2009


Hi Erik,

Thanks for the response.

What's the typical pattern for calling this initialization method? I want to make this as lightweight as possible and would prefer not to have to create a servlet just for the container to initialize sl4fj. Are there any other strategies or patterns people use?

Thanks.




> Date: Fri, 24 Jul 2009 12:31:25 +0200
> From: e.vanoosten at grons.nl
> To: user at slf4j.org
> Subject: Re: [slf4j-user] JUL to LOG4J
> 
> Having the jar on your classpath is not sufficient. You also need to 
> execute (e.g. sometimes during initialization):
> 
> SLF4JBridgeHandler.install();
> 
> Regards,
>     Erik.
> 
> 
> J G wrote:
> > Hello,
> >
> > I am trying to use a 3rd party framework(solr) and have its logging 
> > rerouted to log4j and stored in my log4j.xml file. I am running tomcat 
> > 5.5 and have enabled tomcat route all of its logging to log4j which is 
> > working fine. However, I can't get solr(which utilizes 
> > java.utl.logging) to work similarly. After reading the documentation 
> > and similar mailing list messages my understanding is that all I would 
> > have to add to Tomcat's classpath(tomcat/common/lib) is the 
> > slf4j-api.jar and the slf4j-jdk14.jar. I feel as if I am mising some 
> > configuration/concept or combination of the two which is why it's not 
> > working. If there is configuration that needs to take place, anything 
> > you can provide is appreciated. Any additional information,references 
> > or concepts I am missing are appreciated too.
> >
> > Thanks.
> -- 
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
> 
> _______________________________________________
> user mailing list
> user at slf4j.org
> http://www.slf4j.org/mailman/listinfo/user

_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-user/attachments/20090724/8de1a5eb/attachment.htm>


More information about the slf4j-user mailing list