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
Answer from Maverick on Stack OverflowMedium
bvn13.medium.com › normalized-logger-for-openfeign-8727b4e5d776
Normalized Logger for OpenFeign. Standard Feign logger provides the only… | by Vyacheslav Boyko | Medium
August 12, 2022 - Normalized Logger for OpenFeign Standard OpenFeign logger provides the only approach to log communications — it logs every header in separated log entries, the body goes into another log entry. It …
Spring Cloud
cloud.spring.io › spring-cloud-openfeign › 2.2.x › reference › html
Spring Cloud OpenFeign
1.9. Feign logging · 1.10. Feign @QueryMap support · 1.11. HATEOAS support · 1.12. Spring @MatrixVariable Support · 1.13. Reactive Support · 1.13.1. Early Initialization Errors · 2. Configuration properties · 2.2.4.BUILD-SNAPSHOT · This project provides OpenFeign integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.
Getdocs
spring.getdocs.org › en-US › spring-cloud-docs › spring-cloud-openfeign › spring-cloud-feign › feign-logging.html
Untitled :: Spring Docs
A logger is created for each Feign client created. By default the name of the logger is the full class name of the interface used to create the Feign client.
Top answer 1 of 9
36
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
2 of 9
21
This is how i was able to log using Custom Config class
Note Feign logging only responds to the DEBUG level.
Config Class
@Configuration
public class UserClientConfig {
@Bean
Logger.Level feignLoggerLevel() {
return Logger.Level.HEADERS;
}
}
Client
@FeignClient(name = "User", url = "http://localhost:8080",configuration=UserClientConfig.class)
public interface UserClient {
@RequestMapping(method = RequestMethod.GET, value = "/user")
List<User> getAllUsers();
}
application.properties
logging.level.<pcakgepath>.UserClient: DEBUG
Poznachowski
blog.poznachowski.pl › posts › feign-slf4j-logger
Feign Slf4j Logger you wish you had // It's SOAP's Fault...
August 17, 2021 - spring-cloudspring-cloud-openfeignfeignslf4jlogger · When it comes to Feign and logging its requests and responses, it provides Logger - an abstraction layer with dedicated set of log Levels: Most popular Feign Logger implementation is the SLF4j that outputs Feign information to DEBUG level ...
Javadoc.io
javadoc.io › static › io.github.openfeign › feign-core › 10.7.0 › feign › Logger.html
Logger (Feign Core 10.7.0 API)
Simple logging abstraction for debug messages.
Spring
docs.spring.io › spring-cloud-openfeign › docs › current › reference › html
Spring Cloud OpenFeign
spring: cloud: openfeign: client: config: default: connectTimeout: 5000 readTimeout: 5000 loggerLevel: basic
DeepWiki
deepwiki.com › spring-cloud › spring-cloud-openfeign › 3.3-logging-configuration
Logging Configuration | spring-cloud/spring-cloud-openfeign | DeepWiki
April 29, 2025 - The DefaultFeignLoggerFactory is responsible for creating loggers for Feign clients. As shown in the implementation, it either uses a pre-configured logger or creates a new Slf4jLogger for the specified type: Sources: spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/DefaultFeignLoggerFactory.java
Sofastack
sofastack.tech › en › projects › sofa-tracer › log-format-openfeign
OpenFeign log · 蚂蚁云原生架构SOFAStack
SOFATracer integrates Spring Cloud OpenFeign and outputs the requested link log data format.
DeepWiki
deepwiki.com › OpenFeign › feign › 2.5-logging-system
Logging System | OpenFeign/feign | DeepWiki
This page documents Feign's logging abstraction and implementations. The logging system allows developers to observe HTTP requests and responses at various levels of detail, supporting debugging, trou
Javadoc.io
javadoc.io › doc › io.github.openfeign › feign-core › 10.9.1 › feign › Logger.html
Logger - feign-core 10.9.1 javadoc
Latest version of io.github.openfeign:feign-core · https://javadoc.io/doc/io.github.openfeign/feign-core · Current version 10.9.1 · https://javadoc.io/doc/io.github.openfeign/feign-core/10.9.1 · package-list path (used for javadoc generation -link option) https://javadoc.io/doc/io.github.openfeign/feign-core/10.9.1/package-list ·
Junhyunny
junhyunny.github.io › spring-boot › spring-cloud › logging-for-feign-client
FeignClient 로깅 적용하기 - Junhyunny’s Devlogs
April 25, 2026 - package action.in.blog.config; import feign.Logger; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class FeignLoggerConfig { @Bean Logger.Level feignLoggerLevel() { return Logger.Level.FULL; } } 간단한 테스트 코드를 통해 출력되는 로그를 살펴보자. 다음과 같은 BlogClient 인터페이스를 만든다. 메서드들을 수행할 때 출력되는 로그를 살펴본다. ... package action.in.blog.client; import action.in.blog.domain.Post; import org.springframework.cloud.openfeign.Feign
Javadoc.io
javadoc.io › doc › io.github.openfeign › feign-core › 10.7.0 › feign › Logger.html
Logger - feign-core 10.7.0 javadoc
Latest version of io.github.openfeign:feign-core · https://javadoc.io/doc/io.github.openfeign/feign-core · Current version 10.7.0 · https://javadoc.io/doc/io.github.openfeign/feign-core/10.7.0 · package-list path (used for javadoc generation -link option) https://javadoc.io/doc/io.github.openfeign/feign-core/10.7.0/package-list ·
Programmersought
programmersought.com › article › 6866449848
Spring Cloud OpenFeign Custom Log - Programmer Sought
This project provides OpenFeign integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.