net.sf.ahtutils.AhtUtilsBootstrap Maven / Gradle / Ivy
package net.sf.ahtutils;
import net.sf.exlp.util.config.ConfigLoader;
import net.sf.exlp.util.io.LoggerInit;
import org.apache.commons.configuration.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AhtUtilsBootstrap
{
final static Logger logger = LoggerFactory.getLogger(AhtUtilsBootstrap.class);
public static Configuration init()
{
String configFile = "ahtutils-util/ahtutils.xml";
return init(configFile);
}
public static Configuration init(String configFile)
{
LoggerInit loggerInit = new LoggerInit("log4j.xml");
loggerInit.addAltPath("ahtutils-util");
loggerInit.init();
ConfigLoader.add(configFile);
Configuration config = ConfigLoader.init();
logger.debug("Config and Logger initialized");
return config;
}
}