Location can change as well. 
When app first starts up, it'll end up using the log4j.xml that is in the .jar 
file.
We then create (if needed) a AppName.log4j.xml file in our logs directory, and 
switch log4j to use that one.

On Tue Aug 14 09:14:33 PDT 2018 ralph.go...@dslextreme.com said:
>You are simply trying to refresh the configuration from the same location?
>
>Ralph
>
>> On Aug 14, 2018, at 8:35 AM, John Lussmyer <cou...@casadelgato.com> wrote:
>>
>> Our (old) code that uses log4j does the following in order to swap xml 
>> configurations after app initialization.
>>
>>              final org.apache.logging.log4j.core.LoggerContext ctx = 
>> (org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false);
>>              ctx.reconfigure();
>>              ctx.updateLoggers();
>>
>> Is there a new supported way of doing the same thing?  (The above really 
>> seems kind of hacky.)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
>> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
>For additional commands, e-mail: log4j-user-h...@logging.apache.org


--

Try my Sensible Email package!  https://sourceforge.net/projects/sensibleemail/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to