springcloud——openfeign日志控制-爱代码爱编程
openfeign日志控制
- 配置 yml
-
logging: level: com.atguigu.springcloud.service.PaymentFeignService: debug
- 配置config bean:Logger 引用的是feign的依赖
-
/**feign 开启日志**/ @Configuration public class FeignConfig { @Bean Logger.Level feignLoggerLevel(){ return Logger.Level.FULL; } }
--------------------------------------------------------------------------------------------------------------------------------总结: