当前位置:网站首页>Detailed log display of openfeign call
Detailed log display of openfeign call
2022-04-23 03:02:00 【Leon_ Jinhai_ Sun】
# 0. explain
- We often need to show in detail when calling a service feign Log , Default feign The call is not the most detailed log output , Therefore, when debugging the program, you should turn on feign Detailed log display of .feign The processing of logs is very flexible and can be used for each feign Client specifies logging policy , Each client creates a logger By default logger Its name is feign It should be noted that ,feign The printing of the log will only DEBUG Level response .
- We can feign The client configures its own logger.lever object , tell feign Record those logs logger.lever There are several values
`NONE Don't log anything
`BASIC Just record the request method ,url, Response status code and execution time
`HEADERS Record Basic Level based , Recording requests and responses header
`FULL Recording requests and responses header,body And metadata
# 1. Open log display
feign.client.config.PRODUCTS.loggerLevel=full # Open the specified service log display
#feign.client.config.default.loggerLevel=full # Open the service log display globally
logging.level.com.leon.feignclients=debug # Appoint feign Call the package where the client object is located , Must be debug Level
# 2. Test the service call and view the log
版权声明
本文为[Leon_ Jinhai_ Sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220633251839.html
边栏推荐
- B blocks of the 46th ICPC Asian regional competition (Kunming)
- If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
- 基于多态的职工管理系统源码与一些理解
- JSON data text
- ASP.NET 6 中间件系列 - 条件中间件
- Redis data server / database / cache (2022)
- @Usage and difference between mapper and @ repository
- [hcip] detailed explanation of six LSAS commonly used by OSPF
- 《信息系統項目管理師總結》第六章 項目人力資源管理
- 最通俗易懂的依赖注入之生命周期
猜你喜欢
Error installing Mongo service 'mongodb server' on win10 failed to start
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
[software testing] understand the basic knowledge of software testing
Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
Liunx foundation - zabbix5 0 monitoring system installation and deployment
Introduction and use of openfeign component
Processes and threads
Q-Learning & Sarsa
Blazor University (12)组件 — 组件生命周期
Encapsulate components such as pull-down menu based on ele
随机推荐
Log cutting - build a remote log collection server
第46届ICPC亚洲区域赛(昆明) B Blocks(容斥+子集和DP+期望DP)
Sonic cloud real machine tutorial
Restart redis
Error installing Mongo service 'mongodb server' on win10 failed to start
Niuke white moon race 5 [problem solving mathematics field]
Huawei machine test question -- deformation of hj53 Yang Hui triangle
Opencv reads webcam video and saves it locally
Microservices (distributed architecture)
Q-Learning & Sarsa
Innovation and management based on Scrum
tf. keras. layers. Timedistributed function
《信息系统项目管理师总结》第四章 项目成本管理
最通俗易懂的依赖注入之生命周期
JS learning notes
AC & A2C & A3C
Basic workflow of CPU
Mosaic Routing: implement / home / news
When using art template inheritance, compileerror: invalid or unexpected token generated
基于ele封装下拉菜单等组件