if (logFactory instanceof GeronimoLogFactory) {
// Make sure the root Logger has loaded
Logger logger = LogManager.getRootLogger();
// Change all of the loggers over to use log4j
GeronimoLogFactory geronimoLogFactory = (GeronimoLogFactory) logFactory;
synchronized (geronimoLogFactory) {
if (!(geronimoLogFactory.getLogFactory() instanceof CachingLog4jLogFactory)) {
geronimoLogFactory.setLogFactory(new CachingLog4jLogFactory());
}
}
// Allow users to override the configurationFile which is hardcoded
// in config.ser and cannot be updated by config.xml, as the