配置spring boot 内置tomcat的accessLog日志

时间:2021-12-09 08:55:09
#配置内置tomcat的访问日志
server.tomcat.accesslog.buffered=true
server.tomcat.accesslog.directory=D:/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