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