Most of us treat logging as an afterthought. It's just adding a log as you need it. This is a very callous approach for a tool that’s effectively our first line of defense against bugs in production. Good logs can mean the difference between solving a bug quickly and going bankrupt with over spending. They can mean the difference between spending weeks in CI/CD rinse, repeat hell, or hitting the solution right away.
In this session, we will discuss my suggestions for logging best practices. How your team should align on a standard for “good logging” in a “do this” and “don’t do that” style. These are suggestions, not rules!
We discuss the logic underlying every suggestion and decide whether we wish to apply it.
My goal is that developers would take this guideline and make it their own. Embed it in your organization. Make changes to the document so it will fit your culture. Consistency within the development team and the code review process means the difference between actionable logs and an unreadable mess.