Hi, I am writing a Spring Boot Kotlin micro servic...
# spring
a
Hi, I am writing a Spring Boot Kotlin micro service. I intend to use spring reactive stack along with Kotlin Flows/Coroutines. I want to log all incoming http request and response body in my micro service. What would be an appropriate approach to do that? Is writing a Filter which intercepts the request/response and reads the stream and then log it is safe and recommended? What other options I can explore? Thanks in advance
g
There's quite a few ways this can be done. This article might help: https://www.baeldung.com/spring-http-logging
a
Thanks Gary for your answer. I am using reactive stack ie spring webflux. This article only covers spring mvc. Its a different ball game when it comes to webflux.