Hi,
There is no access log available at the moment.
Mark this as enhancement.
Regards,
Violeta
Users of spring-cloud-gateway are asking for this.
What about this feature ?
+1
+1
+1
+1
+1
+1
+1
Fixed with e26831e
Only CLF is supported for the moment.
-Dreactor.netty.http.server.accessLogEnabled=true can be used to enable access log (by default it is disabled)
The configuration below (logback) or similar (other logging frameworks) can be used to have a separate access log file
<appender name="accessLog" class="ch.qos.logback.core.FileAppender">
<file>access_log.log</file>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<appender name="async" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="accessLog" />
</appender>
<logger name="reactor.netty.http.server.AccessLog" level="INFO" additivity="false">
<appender-ref ref="async"/>
</logger>
Most helpful comment
Fixed with e26831e
Only
CLFis supported for the moment.-Dreactor.netty.http.server.accessLogEnabled=truecan be used to enable access log (by default it is disabled)The configuration below (logback) or similar (other logging frameworks) can be used to have a separate access log file