Feign logging
来源:互联网 发布:软件架构师程序员 编辑:程序博客网 时间:2024/06/02 04:21
spring cloud netfix组件中,feign相关的日志默认是不会输出的。
Logger.Level用于通知Feign进行记录的log的详细程度。
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.NONE, 不记录 (DEFAULT).BASIC, 仅记录请求方式和URL及响应的状态代码与执行时间.HEADERS, 日志的基本信息与请求及响应的头.FULL, 记录请求与响应的头和正文及元数据.
@Bean public Logger.Level feignLoggerLevel() { return feign.Logger.Level.FULL; }
Feign日志只响应 DEBUG 级别
<logger name="com.demo.user.UserClient" level="DEBUG" />
0 0
- Feign logging
- Feign
- Feign
- Logging
- Logging
- logging
- Logging
- logging
- logging
- Feign介绍
- Feign介绍
- Feign基础教程
- feign入门教程
- SpringCloud(六)springcloud feign
- Spring Cloud feign
- Spring Cloud Feign诠释
- SpringCloudNetflix-Feign/Hystrix Setting
- Eureka、Ribbon和Feign
- android的ActivityManager判…
- Android 成功 使用GPS获取当…
- Windows远程Ubuntu如何配置
- 【转载】androidManifest中配置lau…
- 如何获取html中元素的最终的css属…
- Feign logging
- 【原创+文末改良版本】canvas&nbsp…
- 格式化字符串漏洞利用 四、利用的变体
- 415
- linux基础学习之常用命令和常见错误
- 通过MediaStore获取Audio信…
- Unity 游戏存档 PlayerPrefs类的用法
- android service 无法启动
- android MediaPlayer 播…