<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Erik,<br><br>Thanks for the response.<br><br>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?<br><br>Thanks.<br><br><br><br><br>&gt; Date: Fri, 24 Jul 2009 12:31:25 +0200<br>&gt; From: e.vanoosten@grons.nl<br>&gt; To: user@slf4j.org<br>&gt; Subject: Re: [slf4j-user] JUL to LOG4J<br>&gt; <br>&gt; Having the jar on your classpath is not sufficient. You also need to <br>&gt; execute (e.g. sometimes during initialization):<br>&gt; <br>&gt; SLF4JBridgeHandler.install();<br>&gt; <br>&gt; Regards,<br>&gt;     Erik.<br>&gt; <br>&gt; <br>&gt; J G wrote:<br>&gt; &gt; Hello,<br>&gt; &gt;<br>&gt; &gt; I am trying to use a 3rd party framework(solr) and have its logging <br>&gt; &gt; rerouted to log4j and stored in my log4j.xml file. I am running tomcat <br>&gt; &gt; 5.5 and have enabled tomcat route all of its logging to log4j which is <br>&gt; &gt; working fine. However, I can't get solr(which utilizes <br>&gt; &gt; java.utl.logging) to work similarly. After reading the documentation <br>&gt; &gt; and similar mailing list messages my understanding is that all I would <br>&gt; &gt; have to add to Tomcat's classpath(tomcat/common/lib) is the <br>&gt; &gt; slf4j-api.jar and the slf4j-jdk14.jar. I feel as if I am mising some <br>&gt; &gt; configuration/concept or combination of the two which is why it's not <br>&gt; &gt; working. If there is configuration that needs to take place, anything <br>&gt; &gt; you can provide is appreciated. Any additional information,references <br>&gt; &gt; or concepts I am missing are appreciated too.<br>&gt; &gt;<br>&gt; &gt; Thanks.<br>&gt; -- <br>&gt; Erik van Oosten<br>&gt; http://www.day-to-day-stuff.blogspot.com/<br>&gt; <br>&gt; _______________________________________________<br>&gt; user mailing list<br>&gt; user@slf4j.org<br>&gt; http://www.slf4j.org/mailman/listinfo/user<br><br /><hr />Bing™ brings you maps, menus, and reviews organized in one place. <a href='http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1' target='_new'>Try it now.</a></body>
</html>