public static void configureByResource(Auditor auditor, URL url)
throws AuditException {
if (url == null) {
throw new IllegalArgumentException("URL argument cannot be null");
}
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(auditor);
try {
configurator.doConfigure(url);
} catch (JoranException e) {
throw new AuditException("Configuration failure in " + url, e);
}
}