> From: Wm.A.Stafford [mailto:[EMAIL PROTECTED]
> Subject: Tomcat 5.5 logging confusion
>
> I am installing Tomcat 5.5.27 on Windows XP as the servlet
> container for a Spring MVC app we will be hosting.
Are you running Tomcat as a service or from the command line? I'd recommend
doing it from the command line for easier debugging, at least during early
going.
> Where would output to STDOUT be found?
If you're running as a service, you can control disposition of stdout and
stderr with the tomcat5w.exe program; look under the Logging tab. For 5.5,
this normally puts said output in std{out|err}_YYYYMMDD.log in Tomcat's logs
directory.
If you're not running Tomcat as a service, you'll need to set the swallowOutput
attribute for the <Context>s of interest in order to capture the System.out and
System.err usage. The redirected print goes into the webapp's logger, or, if
there isn't one, into the catalina.YYYY-MM-DD.log file.
You can set swallowOutput in the global <Context> element in conf/context.xml,
if you want it to apply to all of your 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 start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]