log4j手动加载配置文件

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


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

你可能感兴趣的:(java,log4j)