public void resetFromXml ( String xmlResourcePath ) throws JoranException { LoggerContext context = ( LoggerContext ) LoggerFactory . getILoggerFactory ( ) ; JoranConfigurator configurator = new JoranConfigurator ( ) ; configurator . setContext ( context ) ; context . reset ( ) ; configurator . doConfigure ( LogbackHelper . class . getResource ( xmlResourcePath ) ) ; }
Generally used to reset logback in logging tests