Search code examples
javaspring-cloudnetflix-eurekaspring-cloud-netflixnetflix-feign

Hostname information in the feign Logger


I am using feign clients in spring-cloud environment with the Eureka discovery service and implementing a custom feign logger to be able to log some usefull request and response information. For that I have extended feign.Logger class and overriden it's methods.

So far so good, but I am interested in logging hostname the request was forwarded to. Is there a way to get this information inside the feign.Logger?


Solution

  • It was confirmed by @spencergibb that there is no way to get hostname in the feign Logger.