标签:public logging open org conf cat log 接口 byte
一、FeignConfiguration.classpackage com.xiaohang.socialcard.pre.feign;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FeignConfiguration {
@Bean
Logger.Level feignLoggerLevel() {
//这里记录所有,根据实际情况选择合适的日志level
return Logger.Level.FULL;
}
}
logging.level.com.xiaohang.socialcard.pre.feign.ChangShaApi: debug
2019-07-05 17:32:42.478 DEBUG 99302 --- [ngsha-payment-3] c.x.socialcard.pre.feign.ChangShaApi : [ChangShaApi#getToken] ---> GET http://xx.xx.xx.xx:xxxx/openInter/getToken?
......
2019-07-05 17:32:42.566 DEBUG 99302 --- [ngsha-payment-3] c.x.socialcard.pre.feign.ChangShaApi : [ChangShaApi#getToken] <--- END HTTP (454-byte body)
标签:public logging open org conf cat log 接口 byte
原文地址:https://blog.51cto.com/12012821/2417865