org.apache.log4j.PropertyConfigurator
Allows the configuration of log4j from an external file.
允许使用外部文件来配置log4j
See doConfigure(String, LoggerRepository)
for the expected format.
看 doConfigure(String, LoggerRepository)了解期望的格式
It is sometimes useful to see how log4j is reading configuration files. You can enable log4j internal logging by defining the log4j.debug variable.
查看log4j是如何读取配置文件有时候是有帮助,你能够通过定义log4j.debug变量启动log4j内部日志
As of log4j version 0.8.5, at class initialization time class, the file log4j.properties will be searched from the search path used to load classes.
从log4j 0.8.5版本起, 在类初始化的时候, log4j.properties文件将从用于加载类的路径中被查找
If the file can be found, then it will be fed to the configure(java.ne