{"categories":[{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"Adds Mapped Diagnostic Context (MDC) support to Python's standard logging library, allowing you to attach contextual fields to log messages via context managers and decorators.","skillfed_tags":["structured-logging","abandoned"],"use_cases":["Attach request IDs or user context to all log entries within a request handler using the MDC context manager.","Decorate functions with @with_mdc to automatically inject operation-specific fields into logs for that function's execution.","Emit structured JSON logs that include both standard logging metadata and custom diagnostic fields for log aggregation systems.","Trace execution flow across async or threaded code by maintaining context-local diagnostic information."],"what_it_does":"MDC is a logging enhancement library that integrates with Python's standard logging module to attach diagnostic context to log messages. It provides a context manager and decorator to inject key-value pairs into logs, which are then formatted as structured JSON output by the MDCHandler. The library automatically captures standard logging fields (message, logger name, timestamp, level) and adds MDC-specific context alongside them, making it useful for tracing requests or operations through distributed systems or complex applications.\n\nThe package has no runtime dependencies and is designed as a drop-in handler for the logging module. However, it is abandoned\u2014last released in September 2019 with no active maintenance. The repository is archived, and the license terms are undocumented, creating uncertainty about legal use and future compatibility with newer Python versions.","worth_installing":"No. The package is abandoned (last release September 2019, repository archived), license terms are undocumented, and it has high install friction. While it has no known vulnerabilities and no runtime dependencies, the lack of maintenance and unclear licensing make it unsuitable for new projects. Consider modern alternatives with active maintenance for structured logging with context support."},"id":"mdc","links":{"html":"https://skillfed.io/packages/mdc","md":"https://skillfed.io/packages/mdc.md","pypi":"https://pypi.org/project/mdc/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-09-09","license_spdx":null,"license_treatment":"unclear","name":"mdc","python_support":"unspecified","summary":"Mapped Diagnostic Context (MDC) library for python"},"popularity":{"monthly_downloads":118883,"position":12102,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.1"}
