tomcat配置josn格式日志

vim  server.xml

 

Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="{"remote_addr":"%{X-Forwarded-For}i","local_addr":"%h","user":"%{username}r","time"
:"%t","url":"%r","status":"%s","body_bytes_sent":"%b","request":"%D"}"/>:

posted @ 2018-01-22 13:34  爱热闹的杨小厨  阅读(156)  评论(0编辑  收藏  举报