tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Eaves <...@eaves.org>
Subject Re: Logging to catalina logger
Date Mon, 02 Dec 2002 01:15:42 GMT
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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 

-- 
Jon Eaves <jon@eaves.org>
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message