当前位置:网站首页>Error log format and precautions
Error log format and precautions
2022-06-25 02:37:00 【InfoQ】
Print in the program code ERROR Basic principles of error logging :
- Describe as completely as possible : Every error log needs a complete description : What's wrong in what scenario , What causes it ( Or what are the possible reasons , Like parameters 、 Other system data, etc ), How can it be solved ( Or other relevant tips for solution );
- Be as specific as possible : For example, insufficient resources , It can be described in detail to : What specifically refers to the lack of resources , Whether it can be directly indicated in the program , For example, the resources of the route pool are insufficient or Interface access current limiting .
- Describe as directly as possible : The most intuitive error log should allow people to read the error log information , You can find out what caused the problem , How to solve , Instead of slowly debugging the program , Or guess the real reason .
The level of logging :
- info It is used to print the normal status information that the program should appear , Easy to track and locate , Usually used to locate logic bug.
- warn It shows that the system is slightly unreasonable, but it does not affect the operation and use , The key to the level of this log is that it does not affect the operation , You can ignore .
- error Indicates that there are system errors and exceptions , The target operation cannot be completed normally .error Manual intervention required .
ERROR Log format
- Class name : Class name .
- Method name : Method name .
- Error phenomenon : Describe the error phenomenon , such as " Interface timeout " perhaps " The interface returned an exception ".
- Conditions : Interface parameters or classes DTO Input parameter serialization result .
- Possible causes : Describe the possible causes of the error , such as " The cache is full " perhaps " XXX permission cannot be obtained ", Error code , Non essential election .
- What do I need to do : Describe recommended actions , such as " Update a key value cache "," Modify so and so permission ", Non essential election .
边栏推荐
- leecode学习笔记-机器人走到终点的最短路径
- 记一次beego通过go get命令后找不到bee.exe的坑
- 高速缓存Cache详解(西电考研向)
- Lihongyi, machine learning 6 Convolutional neural network
- 当他们在私域里,掌握了分寸感
- 软件测试人员的7个等级,据说只有1%的人能做到级别7
- ARM汇编中的栈桢小结
- Getting started with unityshader - Surface Shader
- [analysis of STL source code] functions and applications of six STL components (directory)
- I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
猜你喜欢

业务与技术双向结合构建银行数据安全管理体系

Processon producer process (customized)
![[analysis of STL source code] functions and applications of six STL components (directory)](/img/f2/872fd93ef52b1424343ba634be24f6.png)
[analysis of STL source code] functions and applications of six STL components (directory)

Sumati gamefi ecological overview, element design in the magical world

Is it out of reach to enter Ali as a tester? Here may be the answer you want

电脑端微信用户图片DAT格式解码为图片(TK版)

软件测试人员的7个等级,据说只有1%的人能做到级别7

UnityShader入门精要——表面着色器

Intranet learning notes (5)

Of the seven levels of software testers, it is said that only 1% can achieve level 7
随机推荐
调用系统函数安全方案
How to uninstall CUDA
How to monitor the log through the easycvr interface to observe the platform streaming?
Smartctl opens the device and encounters permission denied problem troubleshooting process record
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(4)—— 修改 oracle11g rac 集群的 scanIP
Processon producer process (customized)
Sumati gamefi ecological overview, element design in the magical world
AI clothing generation helps you complete the last step of clothing design
Dirvish Chinese document of vim
目录权限错误导致 Oracle 11g rac 集群数据库无法启动的问题
当人们用互联网式的思维和视角来看待产业互联网的时候,其实已陷入到了死胡同
Kaggle 专利匹配比赛金牌方案赛后总结
Once beego failed to find bee after passing the go get command Exe's pit
JS regular matching numbers, upper and lower case letters, underscores, midlines and dots [easy to understand]
Leetcode 210: curriculum II (topological sorting)
华为、阿里等大厂程序员真的好找对象吗?
产业互联网的概念里有「互联网」字眼,但却是一个和互联网并不关联的存在
npm包发布详细教程
Internship: use of SVN
【STL源码剖析】配置器(待补充)