我正在尝试将我的log4j.properties转换为log4j.xml,因为我需要使用一些过滤器功能.当我启动应用程序时,我收到一堆警告,我不确定如何解决它们:
log4j:WARN Continuable parsing error 4 and column 69
log4j:WARN Attribute "threshold" for element type "log4j:configuration" has a default value and must be specified in a standalone document.
log4j:WARN Continuable parsing error 4 and column 69
log4j:WARN Attribute "debug" for element type "log4j:configuration" has a default value and must be specified in a standalone document.
log4j:WARN Continuable parsing error 4 and column 69
log4j:WARN Attribute "reset" for element type "log4j:configuration" has a default value and must be specified in a standalone document.
log4j:WARN Continuable parsing error 20 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".
log4j:WARN Unrecognized element param
我只是尝试使用一个非常简单的log4j.xml文件:
我在这里错过了什么?谢谢!
最佳答案
原文链接:https://www.f2er.com/java/437686.html