Hi,
Add swallowOutput="true" to your Context element.  It also makes the
SystemOutLogger/SystemErrLogger definitions redundant IIRC.

Then when you have a chance switch to using a real logging toolkit like
log4j.

Yoav Shapira http://www.yoavshapira.com


>-----Original Message-----
>From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 26, 2004 3:02 PM
>To: Tomcat Users List
>Subject: Server.xml configuration question.
>
>Hi,
>
>I am using Tomcat 5.0.27. I want to configure my server.xml such that:
>1. all system.outs from my webapp
>2. all error and exceptions due to my webapp
>get written to logs/mywebapp.log under CATALINA_HOME
>
>This is the except from my server.xml file that I have written:
>     ...
>     ...
>     <Engine name="Catalina" defaultHost="localhost">
>       <!-- Define the default virtual host -->
>       <Host name="localhost" debug="0" appBase="webapps"
>        unpackWARs="true" autoDeploy="true">
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"  prefix="mywebapp." suffix=".log"
>              timestamp="true"/>
>         <Logger
className="org.apache.catalina.logger.SystemErrLogger"/>
>         <Logger
className="org.apache.catalina.logger.SystemOutLogger"/>
>         <Context path="/mywebapp" docBase="mywebapp" debug="0"
>                  reloadable="true" crossContext="true"/>
>       </Host>
>    </Engine>
>    ...
>    ...
>On running tomcat, I still get all my system.outs and error messages in
>catalina.out. How do I
>configure my server.xml to get these messages in mywebapp.log ?
>
>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]

Reply via email to