The access log formatting variables follow the Apache variables: %b result content length %D time taken to complete the request in microseconds (since 3.0.16) %h remote IP addr %{xxx}i request header xxx %{xxx}o response header xxx %{xxx}c cookie
在tomcat的access中打印出请求的情况可以帮助我们分析问题,通常比较关注的有访问IP.线程号.访问url.返回状态码.访问时间.持续时间. 在Spring boot中使用了内嵌的tomcat,可以通过server.tomcat.accesslog配置tomcat 的access日志,这里就以Spring boot 1.5.3为例. server.tomcat.accesslog.buffered=true # Buffer output such that it is only flus
在tomcat的access中打印出请求的情况可以帮助我们分析问题,通常比较关注的有访问IP.线程号.访问url.返回状态码.访问时间.持续时间. 在Spring boot中使用了内嵌的tomcat,可以通过server.tomcat.accesslog配置tomcat 的access日志,这里就以Spring boot 1.5.3为例. server.tomcat.accesslog.buffered=true # Buffer output such that it is only flus