{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/4"}],"enrichment":{"capability":"Formats Python stdlib logging output as logfmt structured logs without modifying existing log calls, enabling both human and machine-readable output.","skillfed_tags":["structured-logging","logfmt"],"use_cases":["Adopt structured logging in an existing application without rewriting log statements.","Ensure all third-party library logs conform to a single logfmt format for centralized log aggregation.","Add trace IDs, request IDs, or other context fields to all logs via defaults without modifying each call.","Parse logs programmatically or feed them to log aggregation tools that expect key-value structure.","Customize log field names and values by subclassing to match your organization's logging schema."],"what_it_does":"Logfmter is a Python logging formatter that converts stdlib logging output into logfmt structured format\u2014a key-value log format designed for both human readability and machine parsing. It integrates as a standard logging.Formatter, so you pass it to a handler and all logs automatically emit as logfmt without touching any existing log statements. The formatter accepts configuration for which fields to include (like log level, timestamp, process name), custom key-to-LogRecord-attribute mappings, default values, and fields to exclude.\n\nThe package handles both simple log messages and extra dictionaries passed to logging calls, formatting them as space-separated key=value pairs. It supports subclassing for custom value formatting and can template default values using format strings. With no external dependencies and active maintenance, it's designed as a drop-in way to adopt structured logging in existing applications.","worth_installing":"Yes. Logfmter is a lightweight, dependency-free formatter that solves a real problem\u2014adopting structured logging without refactoring existing code. Active maintenance, permissive license, no known vulnerabilities, and low install friction make it a safe choice. Install if you need logfmt output from stdlib logging."},"id":"logfmter","links":{"html":"https://skillfed.io/packages/logfmter","md":"https://skillfed.io/packages/logfmter.md","pypi":"https://pypi.org/project/logfmter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-11","license_spdx":null,"license_treatment":"permissive","name":"logfmter","python_support":"supports_current","summary":"A Python package which supports global logfmt formatted logging."},"popularity":{"monthly_downloads":210617,"position":9490,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.12"}
