try {
// Sets log4j for apache commons logging
LogFactory.getFactory().setAttribute(LogFactoryImpl.LOG_PROPERTY, Log4JLogger.class.getName());
// Gets the log4j properties and use them for the log4j config
DOMConfigurator configurator = new DOMConfigurator();
configurator.doConfigure(log4jInputStream, LogManager.getLoggerRepository());
if (logger.isDebugEnabled()) {
logger.debug("log4j config param loaded");
}
} catch (java.lang.Exception e) {
System.out.println("error logging log4j config param");