logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doug b <ummmm...@yahoo.com>
Subject Re: Re-reading configuration settings
Date Fri, 07 Dec 2001 19:17:07 GMT
if you want to automatically do it whenever the file
changes, PropertyConfigurator has a configureAndWatch
method that should do what you want.

--- 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>
> 


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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


Mime
View raw message