Bergmolch
Oberstdorf, Germany (June 2012)Wikipedia Aricle










LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
try {
  JoranConfigurator configurator = new JoranConfigurator();
  configurator.setContext(context);
  configurator.doConfigure(logFilePath); // loads logback file
} catch (JoranException je) {
  // StatusPrinter will handle this
} catch (Exception ex) {
  ex.printStackTrace(); // Just in case, so we see a stacktrace
}
StatusPrinter.printInCaseOfErrorsOrWarnings(context); // Internal status data is printed in case of warnings or errors.