{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/8"}],"enrichment":{"capability":"Captures and logs Django REST Framework API requests and responses with automatic sensitive-data masking, background storage, and Django admin analytics.","skillfed_tags":["django-middleware","api-observability","request-logging"],"use_cases":["Debug slow or failing API endpoints by inspecting request/response bodies and execution times in Django admin without custom middleware.","Mask sensitive credentials automatically across all DRF endpoints to meet compliance and security audit requirements.","Profile SQL-heavy endpoints to detect N+1 queries and middleware overhead without adding manual instrumentation.","Export API logs as CSV or integrate with analytics services via real-time signals for custom observability pipelines.","Track API performance trends and anomalies using built-in admin charts and filtering by status code, method, and date range."],"what_it_does":"DRF API Logger is a Django middleware that automatically captures incoming and outgoing API metadata\u2014URL, method, headers, body, status code, client IP, and execution time\u2014for every request handled by Django REST Framework. It masks sensitive keys like passwords and tokens with ***FILTERED***, stores logs asynchronously to avoid blocking request threads, and surfaces them in Django admin with search, filtering, charts, and optional SQL profiling. The package is designed to replace fragile custom logging middleware with a production-ready observability layer that works in both sync and async Django deployments.\n\nThe middleware can log to a database for admin visibility and analytics, emit real-time signals for custom integrations, or both. It supports request correlation via trace IDs, payload size limits to prevent unbounded storage, and optional per-endpoint policies for masking and filtering. The admin interface shows slow APIs, execution times, and profiling diagnostics when enabled, making it straightforward to identify performance bottlenecks without writing custom instrumentation.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries no security vulnerabilities, and solves a real problem\u2014comprehensive API observability without custom middleware. It's suitable for production Django REST Framework deployments that need request/response logging, sensitive-data masking, and admin analytics. The only gotcha is planning the database migration carefully on large MySQL/MariaDB tables."},"id":"drf-api-logger","links":{"html":"https://skillfed.io/packages/drf-api-logger","md":"https://skillfed.io/packages/drf-api-logger.md","pypi":"https://pypi.org/project/drf-api-logger/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-08","license_spdx":null,"license_treatment":"permissive","name":"drf-api-logger","python_support":"supports_current","summary":"The production standard for DRF API observability: request/response logging, profiling, masking, and admin analytics."},"popularity":{"monthly_downloads":86318,"position":13872,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
