logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <...@qos.ch>
Subject RE: DOMConfigurator & Tomcat - File location ?
Date Thu, 07 Jun 2001 15:25:02 GMT

Hello,

In the recently release log4j 1.1.2, the log4j.properties file should be placed under the
WEB-INF\classes directory of a web-application. The user manual has a discussion on this subject
with some examples. Ceki 

At 09:32 07.06.2001 -0500, you wrote:
>I do the same for Weblogic. I call
>ProperteyConfigurator.configureAndWatch(propfile,delay);
>
>The propfile and delay are read in as properties.
>
>-----Original Message-----
>From: Herz.S@zdf.de [mailto:Herz.S@zdf.de]
>Sent: Thursday, June 07, 2001 6:40 AM
>To: log4j-user@jakarta.apache.org
>Subject: AW: DOMConfigurator & Tomcat - File location ?
>
>
>Hi,
>according to my own questions i've now a kind of configuration that i would
>like to discuss with you.
>
>1. Tomcat 3.2.1 is started with the system property
>-Dlog4j.configuration=log4j.xml
>2. This log4j.xml is located in 'C:\jakarta-tomcat-3.2.1\classes'
>3. A servlet at startup calls 'DOMConfigurator.configure();'
>
>Now, container wide log4j settings are available.
>
>4. The web applications places their files in
>'C:\jakarta-tomcat-3.2.1\webapps\myapp\WEB-INF\log4j-myapp.xml'
>5. A servlet at startup calls
>'DOMConfigurator.configure("'C:\\jakarta-tomcat-3.2.1\\webapps\\myapp\\WEB-I
>NF\\log4j-myapp.xml'");'
>
>Now, application specific log4j configuration settings are available.
>
>Is this the way to handle log4j in containers as Tomcat ?
>(The file location is for sure not hard coded, instead it is defined in
>web.xml.)
>
>Regards 
>Stefan
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

--
Ceki Gülcü


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


Mime
View raw message