7
votes

I am using Hystrix Feign with Spring Encoder. I want to log exact request (Json) payload that goes out with each request and also the response. How can I do that?

1
What's your Logger.level configuration? - psantamaria
It's info on production. But even in debug level, we get toString representation in the logs not the actual request payloads - Vikrant Kandgaonkar

1 Answers

4
votes

When you define your feign configuration, you have to set the feign logger level, according to the feign logger class, you have 4 possible values, so probably you want to use Logger.Level.FULL.

Hope this help you.