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"));