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 16:10:26 GMT
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

> -----Original Message-----
> From: Javier Gonzalez [mailto:jagonzal@gmail.com]
> Sent: Monday, February 27, 2006 4:47 PM
> To: Log4J Users List
> Subject: Re: Different log files for different web applications under
> Tomcat
> 
> 
> Easiest way: include a copy of log4j.jar in each of the web apps'
> WEB-INF/lib folder. Include a separate log4j configuration 
> file in each
> WEB-INF/classes (or modify each app to configure log4j in each).
> 
> On 2/27/06, julie gautier <juliegautier@yahoo.fr> wrote:
> >
> > Hi all,
> >   I use Tomcat to deploy two web applications. Actually, 
> all the traces
> > are written to a single file (stdout.log) under the Tomcat 
> log directory.
> > How can I do to write the traces to different log files : 
> app1.out and
> > app2.out for instance.
> >   Could you please send me an example ?
> >   Thanks to help me.
> >

---------------------------------------------------------------------
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