{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"}],"enrichment":{"capability":"Formats Python logging records as JSON, enabling structured log output suitable for ingestion by log aggregation systems like Logstash.","skillfed_tags":["logging","structured-logs","json-output"],"use_cases":["Integrate application logs with Logstash or Elasticsearch for centralized log analysis and monitoring.","Add structured metadata (user IDs, request IDs, custom fields) to logs for easier filtering and debugging in production.","Replace plain-text logging with JSON to enable automated parsing and alerting in log aggregation pipelines.","Configure Django applications to emit JSON logs for cloud logging services that expect structured input.","Extend logging with custom fields and transformations by subclassing JSONFormatter for domain-specific requirements."],"what_it_does":"json-log-formatter wraps Python's standard logging module to emit structured JSON records instead of plain text. It integrates with the logging handler pipeline, converting log messages and extra fields into JSON objects written to files or streams. The library provides three formatter classes: JSONFormatter for minimal output, VerboseJSONFormatter to include standard LogRecord attributes (filename, level, thread info, etc.), and FlatJSONFormatter to stringify complex objects. It supports custom formatters by subclassing and allows swapping the underlying JSON library.\n\nThe package is designed for environments where logs feed into aggregation systems like Logstash or cloud logging platforms that parse and index JSON. It works with Django's logging configuration and requires no external dependencies beyond Python 3.9+, making it lightweight to add to existing projects.","worth_installing":"Yes. The package is lightweight, dependency-free, actively maintained, and solves a concrete problem\u2014structured JSON logging is now standard practice for production systems. Install it if you're already using Python's logging module and need JSON output for log aggregation or cloud platforms."},"id":"json-log-formatter","links":{"html":"https://skillfed.io/packages/json-log-formatter","md":"https://skillfed.io/packages/json-log-formatter.md","pypi":"https://pypi.org/project/json-log-formatter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-08","license_spdx":null,"license_treatment":"permissive","name":"JSON-log-formatter","python_support":"supports_current","summary":"JSON log formatter"},"popularity":{"monthly_downloads":3134411,"position":2734,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.2.1"}
