日志管理:(二)og4j.xml警告log4j:WARN The content of element type "log4j:configuration" m

原因log4j.xml中文件的位置不对,顺序为:

<renderer></renderer>
<renderer></renderer>
<renderer></renderer>
<appender></appender>
<appender></appender>
<appender></appender>
<plugin></plugin>
<plugin></plugin>
<plugin></plugin>
<logger></logger>
<logger></logger>
<logger></logger>
<category></category>
<category></category>
<category></category>
<root></root>
<root></root>
<root></root>
<loggerfactory></loggerfactory>
<loggerfactory></loggerfactory>
<loggerfactory></loggerfactory>
<categoryfactory></categoryfactory>
<categoryfactory></categoryfactory>
<categoryfactory></categoryfactory>

详见点击打开链接

你可能感兴趣的:(configuration)