log4j
Hi, I am running tomcat server apache-tomcat-5.5.27. I have set the below parameters in log4j.properties log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.ISTDailyRollingFileAppender log4j.appender.R.File=${catalina.home}/logs/catalina.out log4j.appender.R.DatePattern='.'-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout ist-appender.jar,log4j-1.2.15.jar and commons-logging-1.1.1.jar under common/lib directory. The above settings didnot worked. is there a way to know why it didnot worked Please suggest/guide Thanks Kaushal - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: log4j
Where did you put log4j.properties? For Tomcat 5.5.xx, it should be in CATALINA_HOME/common/classes. Try adding the following to CATALINA_OPTS -Dlog4j.debug=true Jake On Wed, 7 Jul 2010 11:58:23 +0530 Kaushal Shriyan kaushalshri...@gmail.com wrote: Hi, I am running tomcat server apache-tomcat-5.5.27. I have set the below parameters in log4j.properties log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.ISTDailyRollingFileAppender log4j.appender.R.File=${catalina.home}/logs/catalina.out log4j.appender.R.DatePattern='.'-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout ist-appender.jar,log4j-1.2.15.jar and commons-logging-1.1.1.jar under common/lib directory. The above settings didnot worked. is there a way to know why it didnot worked Please suggest/guide Thanks Kaushal - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: log4j
On Wed, Jul 7, 2010 at 8:28 PM, Jacob Kjome h...@visi.com wrote: Where did you put log4j.properties? For Tomcat 5.5.xx, it should be in CATALINA_HOME/common/classes. Try adding the following to CATALINA_OPTS -Dlog4j.debug=true Jake Hi Jake Thanks for the quick reply. is there a way to run log4j appender at a specified time? log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=${catalina.home}/logs/catalina.out log4j.appender.R.DatePattern='.'-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout I have put the log4j.properties under /opt/tomcat0/common/classes and have added -Dlog4j.debug=true under CATALINA_OPTS variable. where do i look for the debug logs. Please suggest. Thanks and Regards Kaushal - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org