【问题标题】:Castor integration with log4jCastor 与 log4j 的集成
【发布时间】:2012-08-17 23:01:12
【问题描述】:

我已经在我的 Java 应用程序中集成了 Castor - XML 映射,并希望通过 log4j 获取一些日志信息(例如检查编组的 xml)。

我将此添加到我的 log4j 配置文件中,但我没有看到任何与 castor 相关的日志记录。我是否需要做任何额外的事情才能让 Castor 与 log4j 一起工作?

【问题讨论】:

    标签: java spring log4j castor


    【解决方案1】:

    定义日志类别会对您有所帮助

    log4j.category.org.castor=DEBUG
    

    【讨论】:

      【解决方案2】:

      我不知道Serkan Arıkuşu's answer 是过期还是不正确,但在 castor-xml 1.4.1 中,要使用的日志记录类别是 org.exolab.castor.xml:

      log4j.category.org.exolab.castor.xml=DEBUG
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-08-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-16
        • 1970-01-01
        • 2015-07-08
        • 1970-01-01
        相关资源
        最近更新 更多