You need to configure logging in application.properties as below:
logging.level.<package path>.MyClient=DEBUG
If you’re using application.yml then:
logging.level.<package path>.MyClient: DEBUG
The log level can be set to tell Feign how much to log.
Options are:
- NONE, No logging (DEFAULT)
- BASIC, Log only the request method and URL and the response status code and execution time
- HEADERS, Log the basic information along with request and response headers
- FULL, Log the headers, body, and metadata for both requests and responses
Example:
logLevel(feign.Logger.Level.NONE)
or
logLevel(feign.Logger.Level.BASIC)
or
logLevel(feign.Logger.Level.HEADERS)
or
logLevel(feign.Logger.Level.FULL)
For more details, you can refer this