当前位置:网站首页>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
边栏推荐
- Kubernetes - Introduction to actual combat
- The problem of removing spaces from strings
- 【Hcip】OSPF常用的6种LSA详解
- When using art template inheritance, compileerror: invalid or unexpected token generated
- Liunx foundation - zabbix5 0 monitoring system installation and deployment
- 对.NET未来的一点感悟
- [software testing] understand the basic knowledge of software testing
- tf. keras. layers. Conv? D function
- Openfeign service call
- Airtrack cracking wireless network password (Dictionary running method)
猜你喜欢

Configuring Apache Web services for servers such as Tianyi cloud

Cherno_ Game engine series tutorial (5): 101~

REINFORCE

Opencv fills the rectangle with a transparent color
![Niuke white moon race 6 [solution]](/img/c5/6c59378c3bb12efa60ab3a8cd2c943.png)
Niuke white moon race 6 [solution]
![Niuke white moon race 5 [problem solving mathematics field]](/img/be/ca059bd1c84eaaaefa3266f9119a6b.png)
Niuke white moon race 5 [problem solving mathematics field]

Binary tree

Encapsulation of ele table

C# WPF UI框架MahApps切换主题

Thoughts on the 2022 national network security competition of the national secondary vocational group (only one idea for myself) - network security competition questions (8)
随机推荐
Cloud computing learning 1 - openstack cloud computing installation and deployment steps with pictures and texts (Xiandian 2.2)
《信息系统项目管理师总结》第四章 项目成本管理
微软是如何解决 PC 端程序多开问题的——内部实现
Winsock programming interface experiment: Ping
Use of MySQL command line client and common commands
Shell learning notes -- shell processing of output stream awk
Introduction to ACM [inclusion exclusion theorem]
Depth deterministic strategy gradient (ddpg)
Development notes of raspberry pie (12): start Advantech industrial control raspberry pie uno-220 Kit (I): introduction and operation of the system
Traversal of l2-006 tree (middle and later order determination binary tree & sequence traversal)
tf. keras. layers. Timedistributed function
[hcip] detailed explanation of six LSAS commonly used by OSPF
Win view port occupation command line
Detailed explanation of distributed things
tf. keras. layers. MaxPooling? D function
Golden nine silver ten interview season, you are welcome to take away the interview questions (with detailed answer analysis)
Chapter VII project communication management of information system project manager summary
The usage of case when and select case when is very easy to use
《信息系统项目管理师总结》第七章 项目沟通管理
Introduction and use of openfeign component