0

我在 apache tomcat 上运行一个网络应用程序,它从网络上获取数据,然后写入一个 excel 表。我在 tomcat 标准输出上收到了几个警告,这使得整个工作流程看起来很丑陋。

如何抑制 apache tomcat 标准输出的警告?

4

2 回答 2

1

看看How to set level logging to DEBUG in Tomcat? 或关于 Logging 的 tomcat 文档:http: //tomcat.apache.org/tomcat-6.0-doc/logging.html

您本质上希望将日志记录缩减为仅(严重)错误。

于 2012-05-10T12:53:52.360 回答
1

鉴于 Tomcat 不直接写入 STDOUT,我假设您正在使用的某些库可以。您可以使用上下文的swallowOutput属性重定向此输出。

于 2012-05-10T13:40:04.773 回答