{"categories":[{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"Integrates structured logging into Django applications using structlog, automatically capturing request metadata like request IDs, user IDs, and IP addresses in each log entry.","skillfed_tags":["request-tracing","structured-logging","django-middleware"],"use_cases":["Track requests end-to-end by searching logs with a request ID across multiple services or log files.","Correlate user actions with errors and performance issues by having user_id automatically included in every log.","Aggregate and analyze logs in JSON format using tools like jq or centralized logging platforms (ELK, Datadog, etc.).","Debug multi-user applications by filtering logs by IP address or user ID without manual context passing.","Extend logging metadata with custom request attributes (domain, tenant ID, feature flags) via signal receivers."],"what_it_does":"django-structlog is a middleware and signal-based integration layer that adds structured logging to Django applications. It automatically captures request context\u2014request ID, user ID, IP address\u2014and binds it to every log entry within that request's lifecycle, making logs queryable and traceable. Instead of flat text logs, you get rich metadata in JSON or key-value formats that can be searched, aggregated, and correlated across your application.\n\nThe package works by installing a middleware component that generates a unique request ID and extracts user information from the request, then uses structlog's context-variable binding to attach this metadata to all logs emitted during request processing. It supports Django REST Framework and django-ninja out of the box, and provides signal hooks to bind additional custom metadata. Logs can be rendered as JSON for log aggregation systems, flat key-value lines for grep-friendly searching, or console output for development.","worth_installing":"Yes. django-structlog is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and low install friction. It solves a real problem\u2014correlating logs across requests\u2014that becomes critical as Django applications grow beyond single-server deployments. If you need queryable, structured logs with automatic request context binding, this is a straightforward addition to your Django stack."},"id":"django-structlog","links":{"html":"https://skillfed.io/packages/django-structlog","md":"https://skillfed.io/packages/django-structlog.md","pypi":"https://pypi.org/project/django-structlog/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-30","license_spdx":null,"license_treatment":"permissive","name":"django-structlog","python_support":"supports_current","summary":"Structured Logging for Django"},"popularity":{"monthly_downloads":3749882,"position":2505,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"10.1.0"}
