LogManager.resetConfiguration(); }
LogManager.resetConfiguration(); BasicConfigurator.configure(); Logger.getRootLogger().setLevel(Level.INFO); }
    public static synchronized void configureLogging(Properties properties) {        if (_isFirstTimeConfig) {            boolean is522OrHigher = false;            _isFirstTimeConfig = false;            is522OrHigher = ERXProperties.webObjectsVersionIs522OrHigher();            if (!is522OrHigher) {                BasicConfigurator.configure();                Logger.getRootLogger().setLevel(Level.INFO);                            } else {                NSLog.setDebug(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.DEBUG));                NSLog.setOut(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.OUT));                NSLog.setErr(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.ERR));            }        } else {	    LogManager.resetConfiguration();	}        PropertyConfigurator.configure(properties);                if (log == null)             log = Logger.getLogger(ERXLogger.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());        }        //PropertyPrinter printer = new PropertyPrinter(new PrintWriter(System.out));        //printer.print(new PrintWriter(System.out));    }