tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl <...@shore.net>
Subject Re: getting exceptions to log to a logfile rather than to console
Date Wed, 31 May 2000 12:54:35 GMT

Thanks,

I had tried that with no success.  getServletContext() was returning
null.  I figured out that the code needed to be in the jsp page rather
thatn the backend java, since the jsp is where the servlet gets
init'd.

Carl

Alistair Hopkins writes:
 > try config.getServletContext().log(e, "comment")
 > 
 > will show up in servlet.log
 > 
 > At 11:42 AM 5/30/00 -0400, you wrote:
 > 
 > >I have tomcat 3.1 with apache 1.3.9.  Does anybody have any idea how
 > >to redirect the java exception errors that currently show up in the
 > >console to one of the log files?
 > >
 > >Thanks in advance for any help.
 > >
 > >Carl Buxbaum
 > >
 > >--------------------------------------------------------------------------
 > >To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
 > >For additional commmands, email: tomcat-user-help@jakarta.apache.org
 > 
 > 
 > --------------------------------------------------------------------------
 > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
 > For additional commmands, email: tomcat-user-help@jakarta.apache.org
 > 

Mime
View raw message