Gonzalez [mailto:[EMAIL PROTECTED]
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
see actual thread Single logfile per User and Day and the thread from last
week Use different log files inside one program.
Heri
-Original Message-
From: julie gautier [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 4:37 PM
To: log4j-user@logging.apache.org
Subject:
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 [EMAIL PROTECTED] wrote:
Hi all,
I use Tomcat to deploy two web
I know my questions are probably stupid (I'm don't know anything to log4j) but
I actually use log4j without configuration file. Do I have to have a
lo4j.properties and a log4j.xml files ? Does someone have an example of such
configuration files in the aim of having log files depending on the
The short log4j tutorial on the log4j website (
http://logging.apache.org/log4j/docs/manual.html ) should give you a quick
primer on configuring log4j for a specific log file.
On the issue at hand, having a copy of log4j in each tomcat context insures
that there are two independent stances of
: 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
Log4j is global within one JVM.
Heri
-Original Message-
From: Javier Gonzalez [mailto:[EMAIL PROTECTED]
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
Interesting aspect. I never dealt with classloaders. Thanks for this
improvement of my knowledge.
Heri
-Original Message-
From: Javier Gonzalez [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 5:31 PM
To: Log4J Users List
Subject: Re: Different log files for different web
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