【问题标题】:Configure .xml properties file - log4j配置 .xml 属性文件 - log4j
【发布时间】:2017-05-27 16:52:07
【问题描述】:

我有一个用于 log4j 的正常工作的 .xml 属性文件,它将日志发送到控制台输出。但我想从该输出中排除一些多余的信息(在程序启动时显示),例如:

log4j: reset attribute= "false".
log4j: Threshold ="null".
log4j: Level value for root is  [DEBUG].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
// etc...

有什么办法吗?

我的xml文件is here

【问题讨论】:

    标签: java xml log4j


    【解决方案1】:

    在您的配置文件集的第 3 行:debug="false"。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-24
      • 1970-01-01
      • 2012-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多