if(log.isDebugEnabled()) { log.debug("log4j.loggerFactory: " + System.getProperty("log4j.loggerFactory")); log.debug("Factory: " + factory); log.debug("", new RuntimeException()); }
    public static synchronized void configureLogging(Properties properties) {        if (_isFirstTimeConfig) {            BasicConfigurator.configure();            Logger.getRootLogger().setLevel(Level.INFO);            _isFirstTimeConfig = false;        }        PropertyConfigurator.configure(properties);                if (log == null)             log = Logger.getLogger(ERXLogger.class.getName(), factory);        log.info("Updated the logging configuration with the current system properties.");        //PropertyPrinter printer = new PropertyPrinter(new PrintWriter(System.out));        //printer.print(new PrintWriter(System.out));    }