Hi, swallowOutput takes your webapp's System.out and System.err output and puts it in the Logger defined for your context. This is good because it keeps your webapp logging output in one less place. It's also good because these Loggers are rotated, unlike catalina.out (the default location for System.out/System.err output), which can grow in size quickly.
I thought this was fairly well defined in the Context element's configuration reference page (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html): "If the value of this flag is true, the bytes output to System.out and System.err by the web application will be redirected to the web application logger. If not specified, the default value of the flag is false." Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: wsedio [mailto:[EMAIL PROTECTED] >Sent: Sunday, May 16, 2004 12:53 PM >To: Tomcat Users List >Subject: swallowOutput property > >Hi all, >what is the swallowOutput property for? > >I found the following server.xml directives in an example and I am not >sure what that property does: > ><Host name="client.com"> > <Context path="/teste" docBase="/home/client/public_html/test/" >debug="0" crossContext="false" reloadable="true" swallowOutput="true" /> > <Logger className="org.apache.catalina.logger.FileLogger" >directory="/home/client/public_html/test/WEB-INF/logs" prefix="client." >suffix=".log" timestamp="true"/> ></Host> > >Thanks. > >--------------------------------------------------------------------- >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]
