配置spring boot 内置tomcat的accessLog日志

#配置内置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

posted on 2018-10-18 10:27  幕码人  阅读(6113)  评论(0编辑  收藏  举报

导航