Hi, It's possible to redirect System.out/System.err from each webapp to the context's log instead of catalina.out using the Context's swallowOutput attribute. Further, you can add swallowOutput to the DefaultContext element, thereby establishing that for all webapps using one parameter in in server.xml.
However, tomcat will still use System.out (which goes to $CATALINA_HOME/logs/catalina.out by default) for some of its own logging: you can configure that further by configuring commons-logging (see the tomcat FAQ entry on configuring tomcat's internal logging). I think even with these configuration entries, however, the catalina.out file will still be touched, so it will be produced although stay at zero size. You can probably avoid even the latter using OS-specific redirection syntax, such as 2&>1 /dev/null or whatever. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Ben Bookey [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 16, 2004 11:14 AM >To: Tomcat User List >Subject: Override the system.outs so that no Tomcat Logfile is produced. > > >Is it possible with a single server.xml (or web.xml) paramter, to overide >all the System.out's in my webApp >so that no logfile is produced. > >Many thanks in advance. >BB > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
