Logging request and response json payloads with Hystrix Feign

Vikrant Kandgaonkar picture Vikrant Kandgaonkar · Mar 16, 2017 · Viewed 13.2k times · Source

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?

Answer

psantamaria picture psantamaria · Apr 20, 2017

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.