Logging
summary
Explains how Python’s standard logging (use getLogger, levels, StreamHandler, RotatingFileHandler, formatters and setLevel) maps to framework loggers in Django/Flask, then shows integrating Sentry with the Raven client via DSN (env var or explicit), using capture_exception / capture_message / capture_query and a decorator to auto-report exceptions. Demonstrates console vs file vs email handlers, Sentry grouping/filters/graphs, ability to self‑host Sentry, and reproducing requests with curl from Sentry.
AI-written summary · about
