Log4j problems in Tomcat 5.x

2007-03-21 Thread Gaurav Kushwaha
I am trying to use log4j with Tomcat. I created a log4j.properties file and dumped it in WEB-INF/classes. I believe its still not being picked up by Tomcat. Any ideas ? Regards, Gaurav Singh Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183 Ph: +91-9880110695

Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread Леонитьев И . Б .
You may add servlet, something like this: public class init extends HttpServlet implements ServletContextListener{ public void contextInitialized(ServletContextEvent event) { //File propertiesFile - your log4j.properties PropertyConfigurator.configure(propertiesFile.toString()); } } ..and add to

Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread sputnik
Gaurav Kushwaha wrote: I am trying to use log4j with Tomcat. I created a log4j.properties file and dumped it in WEB-INF/classes. I believe its still not being picked up by Tomcat. Any ideas ? Regards, Gaurav Singh Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183

Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread Foo Shyn
: Wednesday, March 21, 2007 5:27 PM Subject: Re: Log4j problems in Tomcat 5.x Gaurav Kushwaha wrote: I am trying to use log4j with Tomcat. I created a log4j.properties file and dumped it in WEB-INF/classes. I believe its still not being picked up by Tomcat. Any ideas ? Regards, Gaurav Singh

Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread reno
Le mercredi 21 mars 2007 à 14:36 +0530, Gaurav Kushwaha a écrit : I am trying to use log4j with Tomcat. I created a log4j.properties file and dumped it in WEB-INF/classes. I believe its still not being picked up by Tomcat. Any ideas ? could you please precise your problem... is your log4j