jsonformatter
Python log in json format.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction: the package is distributed only as source (tar.gz), with no wheels available.
- Maintenance is dormant—last release was 631 days ago, though the repository remains active with a recent commit on 2024-11-21.
- No runtime dependencies, so installation itself is straightforward once the source builds.
License · maintenance · safety
permissive license (permissive) — BSD 2-Clause License (permissive): you may use, modify, and distribute the package freely in both open-source and commercial projects, provided you retain the license notice and disclaimer.
last release 2024-11-21 (631 days) · last repo commit 2024-11-21 · 46 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 406,679 downloads/mo, #6,894 on PyPI
Alternatives
Verify before relying
import logging
from jsonformatter import basicConfig
basicConfig(level=logging.INFO)
logging.info('hello, jsonformatter')
# Output: {"levelname": "INFO", "name": "root", "message": "hello, jsonformatter"}- Whether the source-only distribution (no wheels) and dormant maintenance pose practical barriers for production use.
- Current compatibility with modern Python versions beyond the stated 2.7 and 3.x support.
- Performance characteristics when handling high-volume logging in production systems.
What it is and 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.
The 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—useful 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
jsonformatter on PyPI
Before you install
High install friction: the package is distributed only as source (tar.gz), with no wheels available. Maintenance is dormant—last release was 631 days ago, though the repository remains active with a recent commit on 2024-11-21. No runtime dependencies, so installation itself is straightforward once the source builds.
License in practice
BSD 2-Clause License (permissive): you may use, modify, and distribute the package freely in both open-source and commercial projects, provided you retain the license notice and disclaimer.
Quickstart
import logging
from jsonformatter import basicConfig
basicConfig(level=logging.INFO)
logging.info('hello, jsonformatter')
# Output: {"levelname": "INFO", "name": "root", "message": "hello, jsonformatter"}
Verify before relying
- Whether the source-only distribution (no wheels) and dormant maintenance pose practical barriers for production use.
- Current compatibility with modern Python versions beyond the stated 2.7 and 3.x support.
- Performance characteristics when handling high-volume logging in production systems.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=2.7 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 631 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 406,679 / month, #6,894 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonTopic :: Utilities |
Evidence: jsonformatter-0.3.4.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python log json format”
- jsonformatterFormats Python logging output as JSON, enabling structured logs…
- ecs-loggingFormats Python logs as Elastic Common Schema (ECS) JSON, enabling…
- python-json-loggerFormats Python logging output as JSON, making logs machine-readable…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also logfmter · logging-json · logstash_formatter · logzero · JSON-log-formatter · lib-log-rich · logdna · python-json-logger · python3-logstash · logging-formatter-anticrlf