ITeye博客

log4j手动加载配置文件

dingjun1 · 2008-09-10 15:26 · 框架组件 · Markdown


PropertyConfigurator.configureAndWatch("D:\\workspace\\TestSummer\\src\\log4j.properties",50);
		

或者


PropertyConfigurator.configure(TestUserLogic.class.getClassLoader()
.getResource("log4j.properties"));

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。