/**
* Loads the embedded logging configuration (from the JAR file).
*/
private void loadLoggingConfig() {
// get a URL from the classloader for the logging configuration
URL log4jConfigUrl = ClassLoader.getSystemResource(LOG4J_CONFIG_PATH);
// if we didn't get a URL, tell the user that something went wrong
if (log4jConfigUrl == null) {
System.err.println("Unable to find logging configuration file in JAR " +
"with " + LOG4J_CONFIG_PATH + ", reverting to default configuration.");
BasicConfigurator.configure();
} else {
try {
// configure the logging service
DOMConfigurator.configure(log4jConfigUrl);
log.info("Using logging configuration from " + log4jConfigUrl);
} catch (FactoryConfigurationError e) {
System.err.println("Unable to configure logging service");
}
}
}
TqlSession.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:mulgara
作者:
评论列表
文章目录