Spring Cloud Gateway 请求日志记录

https://docs.spring.io/spring-cloud-gateway/docs/2.2.6.RELEASE/reference/html/#reactor-netty-access-logs

 

 

启用Reactor Netty访问日志,需要设置
-Dreactor.netty.http.server.accessLogEnabled=true
它必须是Java系统属性(即在启动jar时带的参数),而不是Spring Boot属性

 

 

 

posted @ 2022-01-23 00:13  残星  阅读(1495)  评论(0编辑  收藏  举报