Farheen Cefalu
9 Logging Best Practices
- KNOW YOUR AUDIENCES
- HAVE A CONSISTENT STRUCTURE ACROSS ALL LOGS.
- UNDERSTAND METRICS.
- REPORTING ALERTS AND EXCEPTION HANDLING.
- USE LOG SEVERITY LEVELS.
- ALWAYS PROVIDE CONTEXT.
- CHOOSE A GOOD LOGGING FRAMEWORK AND USE ITS ADVANCED FEATURES.
- WRITE STRUCTURED LOGS (SOMETIMES)
- LOG AND LOG OFTEN
{"serverDuration": 38, "requestCorrelationId": "f036ce6c34b641539ce4f1e30e71d9dc"}