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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to