logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Lussmyer <Cou...@CasaDelGato.com>
Subject Changing xml config file after startup
Date Tue, 14 Aug 2018 15:35:26 GMT
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.)


Mime
View raw message