log4j手动加载配置文件
PropertyConfigurator.configureAndWatch("D:\\workspace\\TestSummer\\src\\log4j.properties",50);
或者
PropertyConfigurator.configure(TestUserLogic.class.getClassLoader()
.getResource("log4j.properties"));
PropertyConfigurator.configureAndWatch("D:\\workspace\\TestSummer\\src\\log4j.properties",50);
或者
PropertyConfigurator.configure(TestUserLogic.class.getClassLoader()
.getResource("log4j.properties"));
暂无评论。
评论功能维护中,当前仅展示历史评论。