Apache FOP抑制警告

时间:2017-06-30 10:40:33

标签: java apache logging warnings apache-fop

最近我使用log4j配置了一个Java Web应用程序,在后台我们可以降低和提高级别日志并且工作得非常好!

此Web应用程序部署在Tomcat7中,有3个组件(3个战争文件):

  • 校长战争
  • FopServer war(使用servlet)
  • 类似的FOP战争(没有servlet)

一切正常,除了这个系统没有干净的日志文件的部分,所有这都归功于FOP记录了不必要的警告。

我已经浏览了整个互联网,我无法告诉FOP库我不希望将警告日志写入我的catalina.out

到目前为止我做的是:

  1. 我尝试使用我发现的系统将common-logging.properties设置为指向我的log4j并设置log4j.properties。
  2. 我尝试在SimpleLog中预先定义类,以便它只记录Error或Fatal
  3. 我所做的一切都是徒劳的,我不知道还能做什么。你知道我能做的其他事情。

    我记得我使用的是FOP jar。

     Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:17 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:18 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:18 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:18 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:18 AM org.apache.fop.fo.FONode attributeWarning
    WARNING: Warning(0/0): fo:table, table-layout="auto" is currently not supported by FOP
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2
    WARNING: Line 1 of a paragraph overflows the available area. (fo:block, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Warning: Could not get charToByteConverterClass!
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements
    INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%"
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2
    WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 0/0)
    Jun 30, 2017 11:19:18 AM org.apache.catalina.core.StandardWrapperValve invoke
    

0 个答案:

没有答案