Caldarale, Charles R schrieb am 24.11.2008 um 18:53:06 (-0600):
> > From: Michael Ludwig [mailto:[EMAIL PROTECTED]
> > Subject: Re: Setup Logging for Tomcat 6
> >
> > "See the driver" - I think I used that expression yesterday. "Share a
> > logging complex" - could you expand a bit on what this means,
> > or provide a pointer to an informative document?
> 
> Look at Tomcat's class loading hierarchy.  Classes loaded from
> Tomcat's lib directory are shared at runtime by all webapps (and
> Tomcat, for that matter), whereas classes coming from a webapp's
> WEB-INF/lib or WEB-INF/classes are local to that webapp.  If the
> classes from Tomcat's lib directory have any static fields or
> singleton objects, only one copy of those fields and objects exist
> for all the webapps.

I see. I wasn't aware of this property of the "common.loader".

Does the same hold true for the "shared.loader"?

> I haven't looked inside log4j to see just what information in
> maintains in static fields or singletons, but keeping the log4j.jar
> with each webapp insures you won't get any unwarranted interaction in
> your webapps' logging.

This make sense. Thanks!

Michael Ludwig

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to