lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo D'Amore" <v.dam...@gmail.com>
Subject Re: log4j configuration reload
Date Wed, 19 Apr 2017 09:27:09 GMT
An update, I've found this:

http://logging.apache.org/log4j/1.2/faq.html#a3.6

*Is there a way to get log4j to automatically reload a configuration file
> if it changes?*



>
> Yes. Both the DOMConfigurator and the PropertyConfigurator support
> automatic reloading through the configureAndWatch method. See the API
> documentation for more details.
> Because the configureAndWatch launches a separate wathdog thread, and
> because there is no way to stop this thread in log4j 1.2, the
> configureAndWatch method is unsafe for use in J2EE envrironments where
> applications are recycled.


Anyone has tried it?


On Wed, Apr 19, 2017 at 9:27 AM, Vincenzo D'Amore <v.damore@gmail.com>
wrote:

> Hi all,
>
> I'm investigating around latest version of Solr (6.4.1) if it is possible
> reload the log4j.properties configuration file without Solr restart.
>
> As far as I understood it isn't possible, or at least, it's impossible
> without develop an ad hoc component.
>
> Do you know if there are workarounds or best practices about?
>
> Best regards,
> Vincenzo
>
>
> --
> Vincenzo D'Amore
> email: v.damore@gmail.com
> skype: free.dev
> mobile: +39 349 8513251 <349%20851%203251>
>



-- 
Vincenzo D'Amore
email: v.damore@gmail.com
skype: free.dev
mobile: +39 349 8513251

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message