if (logbackConfigLocation == null) {
BasicConfigurator.configureDefaultContext();
LOG.info("No context-specific configuration file found, will use Logback's default configuration");
} else {
LOG.debug("Found logback configuration file at {}", logbackConfigLocation);
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(lc);
// the context was probably already configured by default configuration rules
lc.reset();
try {
configurator.doConfigure(logbackConfigLocation);
} catch (JoranException je) {
// StatusPrinter will handle this
}
}