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
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
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
: 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
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