try {
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(lc);
// the context was probably already configured by
// default configuration rules
lc.reset();
configurator.doConfigure(file);
// Save the filepath after loading the file
filepath = file.getAbsolutePath();
} catch (JoranException je) {}