Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

webapp, ServletContextListener and log files

Hugues Ferland

2007-02-05

Replies:

Hi,

I use Tomcat 5.5 with Java 1.6.0-b105 on a Debian Linux.

I have a context defined and want all of its logging to be in its own logfile. The first thing I tried is to modify the file logging.properties, in the conf directory of my Tomcat installation, adding a handler for my new context.

This looked good until I added a ServletContextListener. Now what is logged during the execution of the method contextInitialized, is written to catalina_XXXX.log (the logfile defined in the Tomcat startup script).

I'd like that to be logged in the same logfile as the rest of the context. I would really appreciate any help.

Thanks,

Hugues

   
---------------------------------
Now you can have a huge leap forward in email: get the new Yahoo! Mail.
©2008 junlu.com - Jax Systems, LLC, U.S.A.