Hi,
>We'd like to do something similar in Tomcat but it's not clear how to >accomplish it. The catalina.sh startup script redirects stdout to >catalina.out, but that file ends up capturing both JVM logging and Web >application logging.
Only if your webapps are bad and use System.out/System.err ;)
You can add swallowOutput="true" to your context declarations to make System.out/System.err output from the webapps go to the localhost log. (Or the Logger defined for the Context, if you have one). JVM stdout messages, such as verbose GC, would still go to catalina.out.
In the long term, use a real logging framework like log4j in your applications and you'll be happier all around ;) Or at least the Servlet Spec-provided logging via ServletContext#log.
Or the ServletContextLogAppender in logging-log4j-sandbox :-) http://tinyurl.com/28van
Jake
Yoav Shapira
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
