support of the access log like nginx/tomcat
Can you be more specific? Logging is a facility of spring boot. Have you looked at https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-logging?
Like the nginx access log http://nginx.org/en/docs/http/ngx_http_log_module.html.
We can specify the log format like below, then it will be log down. The log is useful for the request analysis.
''$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';'
Spring Boot already does this https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-configure-accesslogs
@spencergibb As I understand, this config is specific for tomcat while gateway build on Netty.
You may be right, but the feature request should still go upstream. Access logs in reactor Netty are not specific to the gateway
Hi @spencergibb , are there any news regarding the access logs?
+1
Now that reactor-netty added support in 0.7.9.RELEASE, this is available for use in spring-cloud-gateway.
The property to enable this is -Dreactor.netty.http.server.accessLogEnabled=true, as described in the documentation here: https://cloud.spring.io/spring-cloud-gateway/single/spring-cloud-gateway.html#_reactor_netty_access_logs
Most helpful comment
Now that reactor-netty added support in 0.7.9.RELEASE, this is available for use in spring-cloud-gateway.
The property to enable this is
-Dreactor.netty.http.server.accessLogEnabled=true, as described in the documentation here: https://cloud.spring.io/spring-cloud-gateway/single/spring-cloud-gateway.html#_reactor_netty_access_logs