使用log4j.xml时java-log4j警告消息

我正在尝试将我的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文件

figuration SYstem "log4j.dtd">
figuration xmlns:log4j="http://jakarta.apache.org/log4j/">
    aram name="Threshold" value="INFO"/>
        aram name="ConversionPattern" value="%-5p | %d{MM-dd-yyyy HH:mm:ss.SSS} | %t | %c(%L) - %m%n"/>
        figuration>

在这里错过了什么?谢谢!

最佳答案
粗略地说,独立属性声明信息集不受文档外的任何内容的影响.但是,在这种情况下,情况并非如此,因为属性具有在外部DTD中指定的认值.

相关文章

最近看了一下学习资料,感觉进制转换其实还是挺有意思的,尤...
/*HashSet 基本操作 * --set:元素是无序的,存入和取出顺序不...
/*list 基本操作 * * List a=new List(); * 增 * a.add(inde...
/* * 内部类 * */ 1 class OutClass{ 2 //定义外部类的成员变...
集合的操作Iterator、Collection、Set和HashSet关系Iterator...
接口中常量的修饰关键字:public,static,final(常量)函数...