Resource defaultConfig = new ClassPathResource(configDir + "/cougar-core-defaults.properties");
PropertyLoader pl = new PropertyLoader(defaultConfig, "overrides.properties");
//Build a merged properties file that contains the above as well as System properties
Properties properties = pl.buildConsolidatedProperties();
LogBootstrap logBootstrap = (LogBootstrap)logBootstrapClass.newInstance();
//fire it up with the full set of merged properties
logBootstrap.init(properties);
} catch (Exception ex) {
System.err.println("An error occurred initialising the logger. Ensure the value of property [" +
LOGGING_BOOTSTRAP_CLASS_PROPERTY +
"] points to a class that the implements LogBootstrap interface or is set to \"none\"" + ex);
throw new PanicInTheCougar(ex);