/**
* 获取配置信息
*/
@Override
public void setConfiguration(Configuration cfg)
throws ConfigurationException {
String config = cfg.get("config");
long watch = cfg.getLong("watch");
this.logName = cfg.get("log-name");
if (watch == 0)
watch = FileWatchdog.DEFAULT_DELAY;
if ((config != null) && (!config.trim().equals(""))) {
DOMConfigurator.configureAndWatch(config, watch);
}
setLevel(cfg.get("priority"));
}
Log4jListener.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:VirtualEncoder
作者:
评论列表
文章目录