logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject RE: Different log files for different web applications under Tomcat
Date Mon, 27 Feb 2006 17:05:00 GMT
Interesting aspect. I never dealt with classloaders. Thanks for this improvement of my knowledge.

Heri

> -----Original Message-----
> From: Javier Gonzalez [mailto:jagonzal@gmail.com]
> Sent: Monday, February 27, 2006 5:31 PM
> To: Log4J Users List
> Subject: Re: Different log files for different web applications under
> Tomcat
> 
> 
> It does not start different JVMs - however, given the way the tomcat
> classloader works (
> http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html ), the
> instances are separate. I have a bunch of servers with separate log4j
> configurations on each context to support my point ;)
> 
> But you made me remember an important point - log4j.jar must 
> be only inside
> the contexts, and not in $TOMCAT_HOME/common/lib or 
> $TOMCAT_HOME/shared/lib
> 
> On 2/27/06, Bender Heri <HBender@ergonomics.ch> wrote:
> >
> > Does Tomcat start a separate JVM for each WEB-INF 
> application? If not,
> > your suggestion would not work since Log4j is global within one JVM.
> > Heri
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message