NSNotificationCenter.defaultCenter().postNotification(ERXConfigurationManager.ConfigurationDidChangeNotification, null);
    public static synchronized void configureLogging(Properties properties) {                LogManager.resetConfiguration();        BasicConfigurator.configure();        Logger.getRootLogger().setLevel(Level.INFO);                     boolean is522OrHigher = ERXProperties.webObjectsVersionIs522OrHigher();        if (is522OrHigher) {            int allowedLevel = NSLog.debug.allowedDebugLevel();            if(!(NSLog.debug instanceof ERXNSLogLog4jBridge)) {                NSLog.setOut(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.OUT));                NSLog.setErr(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.ERR));                NSLog.setDebug(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.DEBUG));            }           NSLog.debug.setAllowedDebugLevel(allowedLevel);        }        PropertyConfigurator.configure(properties);        if (log == null) {            log = Logger.getLogger(Logger.class.getName(), factory);        }        log.info("Updated the logging configuration with the current system properties.");        if(log.isDebugEnabled()) {            log.debug("log4j.loggerFactory: " + System.getProperty("log4j.loggerFactory"));            log.debug("Factory: " + factory);            log.debug("", new RuntimeException("This is not a real exception. It is just to show you where logging was initialized."));        }        //PropertyPrinter printer = new PropertyPrinter(new PrintWriter(System.out));        //printer.print(new PrintWriter(System.out));        if(factory != null) {            factory.loggingConfigurationDidChange();        }    }