Tomcat 7 中 RequestDumperValve 的替换
Tomcat 7 不支持 Tomcat 6 及更早版本中提供的 RequestDumperValve。
Tomcat 7 中推荐的替代品是什么?
Tomcat 7 does not support the RequestDumperValve that was available Tomcat 6 and earlier.
What is its recommended replacement in Tomcat 7?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了回答我自己的问题,更广泛的谷歌搜索得出了这个:
And to answer my own question, more extensive Googling came up with this:
作为原始答案的附录,这里有更多细节。除非您熟悉 Tomcat 7 中设置logging.properties文件的方式,否则尚不完全清楚如何配置此配置并实际转储到文件。以下是我如何使转储程序工作:
:将请求转储程序文件处理程序添加到处理程序列表中
b.为请求转储程序日志文件添加适当的文件处理代码
我相信关键步骤是添加对“处理程序”列表的引用。如果您只是添加具有日志记录配置的部分,它似乎不会接受更改并创建文件。
-岩石
As an addendum to the original answer, here is a little bit more detail. It isn't fully clear how to get this configured and actually dumping to a file unless you are familiar with the way the logging.properties file is set up in Tomcat 7. Here is how I was able to get the dumper working:
a. Add the request dumper file handler to the list of handlers
b. Add in the appropriate file handling code for the request-dumper log file
I believe the key step is adding in your reference to the "handlers" list. If you just add in the section with the logging configuration it doesn't appear to pick up the changes and create the file.
-rOcK