Hi Peter, I'm rapidly coming to the conclusion that Tomcat is the Perl of the web application development environments. For those who aren't familiar with Larry Wall's quote on doing things in Perl, it's "There's always more than one way to do it".
Starting at the top: 1. Use the log() method 2. Use System.out/err and set Context.swallowOutput to true 3. Use the Standard Error Logger and Standard Output Logger I suspect you probably want to use 2 or 3. All this information is available in the wonderful documentation provided by the Tomcat developers when you download the Tomcat installation. It's just a matter of reading them ..... The log() method is defined in the ServletContext class in the J2EE documentation. #2 is documented in the Reference/Context section of the Tomcat documentation. #3 is documented in the Reference/Logger section of the Tomcat documentation. Cheers, -- jon Peter Lee wrote:
How do I produce log output to the catalina loggerwhen my program wants to print out some exceptions or messages? Any documents on this?
Thanks
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- Jon Eaves <[EMAIL PROTECTED]> http://www.eaves.org/jon/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
