Comparison
json-logging vs logfmter vs logstash_formatter vs python-json-logger
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
JSON Python Logging
Actively maintained. Last release 8 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install json-loggingA Python package which supports global logfmt formatted logging.
Low maintenance activity. Last release 9 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install logfmterJSON formatter meant for logstash
Likely abandoned. No release or commit for years (last release over 8 years ago).
pip install logstash-formatterJSON Log Formatter for the Python Logging Package
Actively maintained. Last release 5 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install python-json-loggerIn short
- logstash_formatter looks abandoned: avoid it for new projects.
- python-json-logger is the most used: 106M downloads a month, 158× more than json-logging.
- Maintenance is comparable: python-json-logger 76, json-logging 70, logfmter 38 on Pythie’s Index.
- Safe default for a new project: python-json-logger.
Side by side
| Metric | json-logging | logfmter | logstash_formatter | python-json-logger |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 70 | Pythie’s Index: 38 | Pythie’s Index: 21 | Pythie’s Index: 76 |
| Verdict | Actively maintained | Low maintenance activity | Likely abandoned | Actively maintained |
| Downloads / month | 672.4K | 121.1K | 99.3K | 106M |
| Downloads, month over month | +1% | -5% | -3% | +6% |
| GitHub stars | 313 | 109 | 158 | 280 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 16 | 8 | 15 | 0 |
| Last release | Nov 23, 2026 | Mar 11, 2026 | Feb 13, 2018 | Nov 26, 2026 |
| Releases, 12 months | 2 | 1 | 0 | 5 |
| Weeks with commits | 8 / 26 | 1 / 26 | 0 / 26 | 8 / 26 |
| Recent contributors | 5 | 3 | 20 | 23 |
| First release | Dec 2017 | Feb 2022 | May 2013 | Feb 2013 |
| Python versions | – | – | – | 3.10 – 3.14 |
| License | Apache-2.0 | MIT | MIT | BSD-2-Clause |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.