Six Ways to Make Your Production Logs More Useful
- Log structured data in a readable format
- Add a dash of color
- Logs let your app communicate with you and your team
- Seriously though, don’t put exception stack traces in your logs!
- Log URLs for easy access to more context
- Add emotional context to your logs
Most of these are somewhat expected, but I emotional context in logs was definitely new to me. I wonder why I’ve never even thought of this.