> From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] > Subject: RE: How to have multiple loggers with shared code > also using the logger? > > And since the log4j.jar resides in the ${catalina.home}/lib > folder, this root logger is used by all web apps.
The log4j.jar is only there because you put it there. It does not come with the Tomcat distribution, and it's normally placed in the WEB-INF/lib directory of each webapp that needs it. By having such a jar in a common location, you've pretty much guaranteed that you'll have to take Tomcat down to redeploy a single webapp - the old webapp won't go away because log4j will be hanging onto references to it. (A common cause of PermGen filling up after redeployments.) The servlet spec (and experience) strongly suggest that webapps be kept as isolated as possible for this kind of reason. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org