RE: Separating JVM's stdout from Tomcat's
At 12:23 PM 3/15/2004 -0500, you wrote: 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]
Re: Separating JVM's stdout from Tomcat's
On Mon, 15 Mar 2004, Shapira, Yoav wrote: > 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. Thanks. Unfortunately we don't have as much control over this as we would like. We provide the infrastructure for a large set of Web applications developed by a large community, and though there are standards and "best practices" that have been disseminated, they're not always adhered to. We sometimes need to make a bad situation more manageable, and in the short term getting a handle on System.out usage by the "bad" applications is highly desirable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Separating JVM's stdout from Tomcat's
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. 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]