Created
July 15, 2016 12:01
-
-
Save Rudge/2c333e889b7066fbc026fe50a359c43a to your computer and use it in GitHub Desktop.
Reload logback in runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); | |
| context.reset(); | |
| JoranConfigurator configurator = new JoranConfigurator(); | |
| configurator.setContext(context); | |
| configurator.doConfigure(new FileInputStream(new File(env.getProperty("logging.path")))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment