Chuck There are many web apps. Log4j logger is used in all web apps & there are no system.out or system.err
If I configure log4j at each web app level using log4j.properties, am abile to achive log file rotation but, this requires one log file per web application. What I am interested is one log file for all web apps - say catalina,out & this file should be rotated based on size, which should be configurable. Am not Ok with catalina.out being rotated once in a day or once in a month. Could you let me know, how to achieve my requirement, please ? Thanks --- On Sun, 1/11/09, Caldarale, Charles R <chuck.caldar...@unisys.com> wrote: From: Caldarale, Charles R <chuck.caldar...@unisys.com> Subject: RE: Logging configuration in Tomcat To: "Tomcat Users List" <users@tomcat.apache.org> Date: Sunday, January 11, 2009, 10:34 PM > From: Jay [mailto:difficult...@yahoo.com] > Subject: RE: Logging configuration in Tomcat > > My actual problem is that, as it is, catalina.out is growing Sounds like your webapps are using System.out or System.err for their logging, which is poor practice. They should be using a proper logging mechanism, not just splattering print statements wherever they feel like it. You should be able to address that with the swallowOutput attribute of the <Context> element: http://wiki.apache.org/tomcat/FAQ/Logging#Q6 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Set the attribute in conf/context.xml if you want it to apply to all webapps. - 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