It worked
Thanks a lot Mariano!
-Original Message-
From: Mariano [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 12:23 PM
To: 'Tomcat Users List'
Subject: RE: Help with reloading a servlet for log4j logging.
You must use
PropertyConfigurator.configureAndWatch(fileProperties,miliseconds)
By
Mariano
-Mensaje original-
De: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 26 de mayo de 2005 8:35
Para: tomcat-user@jakarta.apache.org
Asunto: Help with reloading a servlet for log4j logging.
Hi,
I am initializing Log4J system using an init servlet, which is loaded on
start-up (servlet name is Log4JInitServlet).
In web.xml I am pointing to the log4j.properties file using the param
tag.
Problem
Now suppose I change some properties in log4j.properties file. (change
the log level for example).
I want to reload this file with the changed properties and restart log4j
system with these new properties.
Question
Can I re-load the new properties file (and consequently the log4j
system) by reloading the initservlet (LogJInitServlet)?
Something similar to reloading an entire webcontext using
http://localhost/manager?reload=myLog4JApp.
I don't want to restart tomcat to restart the logging system.
Can this be done in tomcat?
I am using tomcat 4.x version, on win32/linux systems.
Thanks a lot in advance,
Subhro.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]