Thanks for following up Charles. I have one more question about catalina.* logs.
I made some changes in my webapps config (snippet below) and I got logs in catalina.out as well as in a file specified by FileAppender. The problem seems to be because of my wrong config where I used CONSOLE appender as well FILE appender; and hence I got logs in catalina.out as well as specified file. As you explained Stdout goes to catalina.out, so this was expected. But I see some inconsistency in the $CATALINA_HOME/logs directory. I see catalina.out as well as catalina.<date-stamp>.log . But the catalina.<date-stamp>.log file is not in sync with catalina.out, e.g. Sum of( catalina.<date-stamp>.log ) != catalina.out file . For certain days I see logs in catalina.out but there is no catalina.<date-stamp>.log file for that day. I don't think those files got deleted, so I am wondering what is wrong with the configuration? Any help on what to look for catalina.* log configuration? Am I missing something over here? -- jM. Following were config changes to add log4j: * Edited $CATALINA_HOME/webapps/WReports/web.xml <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/classes/log4j.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> * Edited $CATALINA_HOME/webapps/WReports/WEB-INF/classes/log4j.xml which contains appender and logger config. Omitted unnecessary(?) part: <root> <priority value="debug" /> <appender-ref ref="CONSOLE" /> <appender-ref ref="hibernateLog" /> </root> ---------- Forwarded message ---------- From: Caldarale, Charles R <chuck.caldar...@unisys.com> Date: Fri, May 21, 2010 at 5:32 PM Subject: RE: newbie logging question: JULI or log4j or both? To: Tomcat Users List <users@tomcat.apache.org> > From: Johan Martinez [mailto:jmart...@gmail.com] > Subject: Re: newbie logging question: JULI or log4j or both? > > Tomcat was not installed using CentOS package manager, but it > is a core binary package downloaded from tomcat project site. Good; that means we don't have to guess what any repackager fiddled with. > * $CATALINA_HOME/common/classes/log4j.properties: > contains a line which is spitting out logs to tomcat.log > So I guess I am using log4j for internal logging and they > are going to tomcat.log file. Sounds like it. Looks like someone has modified the Tomcat installation in accordance with these instructions: http://tomcat.apache.org/tomcat-5.5-doc/logging.html#log4j > I don't see any configuration that specifies catalina.out. There won't be - that's specified only in the startup script as a redirect from stdout. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org