tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Svein Olav Bjerkeset <>
Subject Logging exceptions per webapp in Tomcat 5.5
Date Mon, 03 Jan 2005 08:12:19 GMT
After having read about how to setup logging in Tomcat 5.5 (,
I have managed to set up Log4j to work with Tomcat 5.5.

However, when I set up indivdual logs for my webapps, only output generated from log statements
in the code (Log4j
statements) end up in these logs. Exceptions still end up in catalina.out (which is common
to all webapps). I would
like the exceptions to end up in the logfile belonging to the webapp that generated it.

I have tried adding the following line in my web/WEB-INF/classes/ file without
getting the wanted result:[Catalina].[localhost].[/mywebapp]=DEBUG,

To test the logging, I have written a short JSP which just thorws an exception. 

>From what I read in the following article:,
it seems that exceptions (and other output sent to stdout or stderr) can not be redirected
and will always go to
catalina.out. Is this correct or is there a way to also redirect exceptions to individual
log files basen on what
wabapp generated the exception?

Thanks in advance for any help,
Svein Olav Bjerkeset

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

View raw message