, October 24, 2002 11:48 AM
To: Tomcat Users List
Subject: Re: Help with log4j and
log4j.propereties under Tomcat 4.1.2
Hi CC,
I also wanted to have them in WEB-INF. The
following code works
for me (TC 4.0.4). You can even rename the
log4j.properties to
whatever you want. This solution
Hi CC,
I also wanted to have them in WEB-INF. The following code works
for me (TC 4.0.4). You can even rename the log4j.properties to
whatever you want. This solution is supposed to work in not
expanded wars, too.
InputStream log4jPropsIn =
By default, log4j attempts to obtain its configuration file from the current
classloader using the getResource() call.
The classloader for a web-app retrives classes from the WEB-INF/classes folder;
placing the log4j.properties file here is the recommended configuration procedure
under tomcat
See the following for hints on how to set up intelligent Log4j configuration:
http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/WEB-INF/sample.web.xml?rev=1.3content-type=text/x-cvsweb-markup