ContextInitializer.autoConfig(lc, lc.getClass().getClassLoader());
addInfo("Context: " + lc.getName() + " reloaded.");
}
public void reload(String fileName) throws JoranException {
LoggerContext lc = (LoggerContext) context;
addInfo("Shutting down context: " + lc.getName());
lc.shutdownAndReset();
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(lc);
configurator.doConfigure(fileName);
addInfo("Context: " + lc.getName() + " reloaded.");
}