{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Formats Python logging output as JSON, enabling structured logs suitable for log aggregation systems like LogStash.","skillfed_tags":["logging","json-output","structured-logs"],"use_cases":["Centralize logs from a Python application into LogStash or similar aggregation systems by formatting each log entry as JSON.","Add request-scoped context (user ID, request URL, session data) to logs in Flask or Django applications automatically.","Parse and query logs programmatically by ensuring all output is valid JSON rather than unstructured text.","Migrate from text-based logging to structured logging without rewriting application log statements.","Output multiple LogRecord attributes in custom JSON keys for downstream analytics or monitoring tools."],"what_it_does":"jsonformatter is a Python logging formatter that converts log records into JSON output, making logs machine-readable and suitable for centralized log aggregation platforms. It works by intercepting Python's standard logging system and reformatting each LogRecord as JSON, allowing you to customize which record attributes appear in the output and in what order.\n\nThe package supports multiple configuration approaches: a simple basicConfig function for quick setup, direct JsonFormatter instantiation for fine-grained control, and logging config files for declarative configuration. It also allows you to inject custom attributes into LogRecords\u2014useful in web frameworks like Flask or Django where you might want to automatically include request context (username, URL, session data) in every log line. The formatter supports all json.dumps parameters and handles non-JSON-serializable custom attributes.","worth_installing":"Yes, with conditions. Install if you need JSON-formatted logs for aggregation or structured logging in a Python application and are comfortable with source-only distribution and dormant maintenance. The package is stable and has no known vulnerabilities, but the lack of wheels and infrequent updates mean you should verify compatibility with your target Python version before production deployment. Not recommended for projects requiring active upstream support."},"id":"jsonformatter","links":{"html":"https://skillfed.io/packages/jsonformatter","md":"https://skillfed.io/packages/jsonformatter.md","pypi":"https://pypi.org/project/jsonformatter/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-21","license_spdx":null,"license_treatment":"permissive","name":"jsonformatter","python_support":"supports_current","summary":"Python log in json format."},"popularity":{"monthly_downloads":406679,"position":6894,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.4"}
