7 ms·
Should add that log messages should answer questions like: - What happened - When it happened? - Where it happened? - Why it happened? - What's the next st
by 0x457 4y ago
Should add that log messages should answer questions like:
- What happened
- When it happened?
- Where it happened?
- Why it happened?
- What's the next step?
If your log doesn't answer at least the first 3 questions, then it's useless. If you don't answer "why", then you should think harder whether that is useful or not.
If I had a cent for every time I see "Something went wrong" optionally followed by stack trace that is nearly entirely in 3rd party code with zero information to correlate it with anything - I would have retired to homestead ages ago.
- spyspy 4y agoAlso, who did it?