{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"}],"enrichment":{"capability":"Formats Python logging records as JSON output, enabling structured logs suitable for ingestion by log aggregation platforms like Splunk or Elasticsearch.","skillfed_tags":["structured-logging","log-aggregation"],"use_cases":["Send application logs to Splunk or Elasticsearch with proper JSON structure for indexing and search.","Add custom metadata fields (service name, environment, request ID) to every log entry automatically.","Capture exception details including type, message, and full stack trace in a structured JSON format.","Replace plain-text logging with structured output for easier parsing and analysis in log aggregation platforms.","Configure JSON logging via YAML or dictConfig without modifying application code."],"what_it_does":"logging-json is a formatter for Python's standard logging module that converts log records into JSON output. It sits between your application's logging calls and the output stream, intercepting records and serializing them as structured JSON dictionaries. This is particularly useful when your logs are consumed by centralized log aggregation systems like Splunk or Elasticsearch, which expect structured data rather than plain text.\n\nThe formatter handles three main logging patterns: dictionary logging (where you pass a dict directly), string logging (where you pass a message string), and exception logging (where it captures exception type, message, and stack trace). You can add custom fields to every log entry, customize field names, and control timestamp formatting. It integrates seamlessly with Python's standard logging.config.dictConfig, allowing you to configure it via Python dict or YAML file.","worth_installing":"Yes, if you need structured JSON logging for a log aggregation platform. The package is stable, dependency-free, and straightforward to integrate. Dormant maintenance is acceptable for a focused formatter\u2014the core logging API is unlikely to change. No known vulnerabilities. Install if you're already using Splunk, Elasticsearch, or similar systems; skip if you only need plain-text or Python's default formatting."},"id":"logging-json","links":{"html":"https://skillfed.io/packages/logging-json","md":"https://skillfed.io/packages/logging-json.md","pypi":"https://pypi.org/project/logging-json/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-02-04","license_spdx":null,"license_treatment":"permissive","name":"logging-json","python_support":"supports_current","summary":"JSON formatter for python logging"},"popularity":{"monthly_downloads":271433,"position":8222,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
