想给log4j指定配置文件
就算在~/tomcat/common/classes已经存在log4j.properties也不理会 String fullFileName = “F:\Test\conf\log.conf";
if (fullFileName != null) {
PropertyConfigurator.configure( fullFileName );
}
Center.LOG = Logger.getLogger("");这么写还是会读log4j.properties
怎么整?
就算在~/tomcat/common/classes已经存在log4j.properties也不理会 String fullFileName = “F:\Test\conf\log.conf";
if (fullFileName != null) {
PropertyConfigurator.configure( fullFileName );
}
Center.LOG = Logger.getLogger("");这么写还是会读log4j.properties
怎么整?
555555555555
谢谢!!