code:     static public void configureLC(LoggerContext lc, String configFile) throws JoranException {
          JoranConfigurator configurator = new JoranConfigurator();
          lc.reset();
          configurator.setContext(lc);
          configurator.doConfigure(configFile);
      }
  