Logging

9 Logging Best Practices

  1. KNOW YOUR AUDIENCES
  2. HAVE A CONSISTENT STRUCTURE ACROSS ALL LOGS.
  3. UNDERSTAND METRICS.
  4. REPORTING ALERTS AND EXCEPTION HANDLING.
  5. USE LOG SEVERITY LEVELS.
  6. ALWAYS PROVIDE CONTEXT.
  7. CHOOSE A GOOD LOGGING FRAMEWORK AND USE ITS ADVANCED FEATURES.
  8. WRITE STRUCTURED LOGS (SOMETIMES)
  9. LOG AND LOG OFTEN