Useful valves to help debug Tomcat

来源:百度文库 编辑:神马文学网 时间:2024/04/27 22:32:12
You can configure two useful valves in server.xml. One is RequestDumperValve, which can dump request header in the log files. The other one is AccessLogValve, which help you to trace who accessed which at when.
Below is a sample configuration of there two valves.





directory="/root/tomcat-access-log"
pattern="common"/>
/valve>
Although the valves are configured at an engine level, they can also be configured at any level, e.g. Connector or Host.