feign icon indicating copy to clipboard operation
feign copied to clipboard

Provide a way to exclude headers from logs

Open clemstoquart opened this issue 3 years ago • 3 comments

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.

clemstoquart avatar Aug 23 '21 13:08 clemstoquart

you can create a custom http client and use an interceptors to modify your logs according to how you want.

ankisinha3005 avatar Oct 17 '21 22:10 ankisinha3005

Yes you're right. But IMO this is required so often that it would be worth it to add the feature in feign.

clemstoquart avatar Oct 17 '21 22:10 clemstoquart

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.

kdavisk6 avatar Mar 24 '22 14:03 kdavisk6