develop/spring

tomcat accesslog pattern 설정 (standard 설정)

참새느님 2015. 7. 2. 21:51
Common Log Format: %{X-Forwarded-For}i %l %u %t "%r" %s %b
2Combined Log Format: %{X-Forwarded-For}i %l %u %t %r %s %b %{User-Agent}i %{Referer}i



tomcat 의 server.xml 파일 안에 accesslog를 찍어내는 설정 중


pattern을 지정할 때 "common"이나 "combined"를 주면 스탠다드한 설정이 된다.


common으로 했을 시 로그 포맷은 : %{X-Forwarded-For}i %l %u %t "%r" %s %b


combined으로 했을 시 로그 포맷은 : %{X-Forwarded-For}i %l %u %t %r %s %b %{User-Agent}i %{Referer}i