logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Watch functionality with log4j.configuration System property?
Date Wed, 22 Aug 2007 13:29:49 GMT
Set a system property with the config filename and call
DOMConfigurator.configureAndWatch with the value of that system
property.

On 8/22/07, Joshua Blake <jsblake@mac.com> wrote:
> I searched the archives & docs for this question, thinking it must
> have come up before, but didn't find anything.  If this has come up
> before, please be so kind as to send me a link to the previous
> posting/document.  Thank you!
>
> I want to configure Log4J using XML, and without specifying the
> config filename in my code.  I also want to be able to watch the
> config file for changes and reload dynamically.  I can do the former
> using the system property "log4j.configuration", which works great.
> However, that method doesn't appear to watch & reload the config file
> when its been changed.  Is there a way to do this without manually
> calling DOMConfigurator.configureAndWatch(filename)?
>
> Thanks!
>
> - Josh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James A. N. Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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


Mime
View raw message