I am new to spring cloud gateway, what I want is to log incoming request to corresponding route url, For e.g. if I have following route config:
- id: route1
uri: http://localhost:8585/
predicates:
- Path=/foo/**
filters:
- RewritePath=/foo/(?<segment>.*), /$\{segment}
Then for a incoming request of 'http://localhost:8080/foo/route1' following log message should be printed.
"Incoming request url 'http://localhost:8080/foo/route1' is routed to 'http://localhost:8585/route1'"
Is there any easy way of achieving this or can I achieve this just by setting log level.
Can you please help