是否有可能使用 tomcat accesslogvalve 将作为参数发布到 tomcat 下的 birt 的内容记录下来。使用标准模式不会给我结果。我想要的预期结果是用户在此报告中作为参数发布的内容
实际测试的 accesslog 阀门配置:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="Mifos-Server-access_log." suffix=".txt" pattern="%{x-Forwarded-For}i %l %a %A %H %m %q %r %S %t %u %U %T %{Cookie}i" resolveHosts="false"/>
结果 :
10.10.10.5 10.10.10.10 HTTP/1.1 GET ?__report=/home/myapp/report/pay_rest.rptdesign&reportName=pay_dorig%20source&userId=123&__format=pdf GET /myapp/birtReports?__report=/home/myapp/report/pay_rest&reportName=pay_dorig%20source&userId=123&__format=pdf HTTP/1.1 43E36E8R248ECEFB4B5AX985975FNEU7 [13/Jan/2015:12:30:41 +0100] - /my_app/birtReports 2.224
谢谢