-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe,
On 5/4/2010 1:59 PM, Joe Hansen wrote: > 2. But the web application logging is working wierdly.The log entries > are written to c:\Tomcat\logs\xyz.log (i.e. the xyz web application's > log) instead of writing to c:\Tomcat\logs\abc.log. . > > Here's the c:\Tomcat\abc\ROOT\WEB-INF\classes\log4j.properties file. Oh, I forgot to mention in my other message: you should put log4j.log into your webapp's WEB-INF/lib directory and not share it between webapps. Several reasons: 1. log4j can only be initialized in one way. You can re-initialize, but that's not what you want. 2. Webapps ought to be self-contained, other than the APIs guaranteed to be provided by the container. 3. Your webapp A might need a different version of log4j (or any other library for that matter), and therefore they just can't share. It's just a better idea to bundle the required libraries with your webapp. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvgfVAACgkQ9CaO5/Lv0PDG/ACeMCgC8sgx6u9do6yASUGESN25 tecAn3MwvXH7cqB75S6yUnSJfbv1GBaE =ud2n -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org