Characteristics of good logging
How many times you have seen this issue? Logging is implemented but the information in the logs is not useful for building insights or debugging production issues. That's where best practices come into the picture, to implement good logging in your application. Some of the characteristics of good logging are as follows:
- It should not affect the actual application performance.
- It should be accurate and complete.
- It should be leveraged for data analytics and learning about application usage, such as concurrent users, peak load time, most/least used features, and so on.
- It should help us reproduce the issue reported for root cause analysis and minimize "unable to reproduce" instances.
- It should be distributed and easily accessible by everyone – development, product owner, and support.
- It should not contain protected or sensitive info, personally identifiable information (PII), or duplicate or unnecessary...