1. 程式人生 > >配置spring boot 內建tomcat的accessLog日誌

配置spring boot 內建tomcat的accessLog日誌

#配置內建tomcat的訪問日誌
server.tomcat.accesslog.buffered=true
server.tomcat.accesslog.directory=/home/hygw/logs
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.file-date-format=.yyyy-MM-dd
server.undertow.accesslog.pattern =%h %l %u %t "%r" %s %b
server.tomcat.accesslog.prefix=access_log
server.tomcat.accesslog.rename-on-rotate=false
server.tomcat.accesslog.request-attributes-enabled=false
server.tomcat.accesslog.rotate=true
server.tomcat.accesslog.suffix=.log