[slf4j-user] JUL to LOG4J

Erik van Oosten e.vanoosten at grons.nl
Fri Jul 24 12:31:25 CEST 2009


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/




More information about the slf4j-user mailing list