logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yoav Shapira <shap...@mpi.com>
Subject Re: Re-reading configuration settings
Date Fri, 07 Dec 2001 18:06:18 GMT
See [DOM|Property]Configurator.configureAndWatch() method.  Good luck,


chandra.swaminathan@kodak.com wrote:
> From: Chandra Swaminathan
> Hi,
> I apologize if this question has been asked before, but does anybody know
> of an elegant way to re-read configuration information after the
> application that uses log4j has been started.  So, if I wanted to start
> using a different appender for log4j messages without shutting down the
> application and restarting it, is there a way to do this?  My initial
> thought was to setup a separate low-priority thread in my application which
> would re-initialize the property configurator by reading the property file
> every so often. This would catch any changes the next time it reads the
> file.  Is this the only way to do it or are there any better approaches?
> Thanks in advance for any suggestions.
> Chandra.
> --
> To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

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

View raw message