feign
feign copied to clipboard
Provide a way to exclude headers from logs
Hi feign team,
It would be very useful to be able to exclude some specific headers from the feign http logs. For example we don't want to log authorisation
header for security reasons.
Have a nice day.
you can create a custom http client and use an interceptors to modify your logs according to how you want.
Yes you're right. But IMO this is required so often that it would be worth it to add the feature in feign.
Another option is your own Logger
implementation, but I do agree, this would be a good enhancement. We are open to proposals on how to do this.