tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Laurent>
Subject Re: Newbie Question about logging
Date Tue, 11 Jun 2002 12:31:14 GMT wrote:
> Hi All,
> I have just started using 1.4 and using the application log files.
> These are great for build errors etc but how can I get my servlets to write
> runtime errors to that log (ie ORA errors).

see the servlet specifications
in 2.2, the ServletContext interface have log methods
in javadoc
see the log methods,%20java.lang.Throwable)

just add in your doGet method
log("my log");

that's enough !

> At the moment my catches just write to System.out.println as I hoped the
> logs would receive standard err?

Frédéric Laurent

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message