# metachris/logzero

Robust and effective logging for Python 2 and 3.

Repository: https://github.com/metachris/logzero
Canonical: https://ross.abutalabs.com/products/logzero
Homepage: https://logzero.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: python, logging, logzero, logfiles
Archived: true
Last push: 2022-11-27T23:15:17+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3369, "days_push": 1375, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1019, forks 72 (observed 2026-08-28T04:03:14.998085+00:00)

## What it is
logzero is a Python library that provides a fully configured, easy-to-use logger for Python 2 and 3, with colored console output, rotating logfile support, and optional JSON logging. It is contained in a single file with no required dependencies and is MIT licensed.

## Use cases
- add simple colored logging to a python script
- log to a rotating logfile in python
- output logs as  in python
- share one logfile across multiple python processes
- replace boilerplate python logging configuration

## When to choose
- you want zero-config, pretty logging in a Python 2 or 3 project
- you need console colors plus rotating file logging with minimal setup
- you want optional JSON-formatted logs without extra wiring

## When to avoid
- you need structured logging features beyond what logzero offers (e.g. distributed tracing)
- your project requires actively maintained dependencies with recent releases
- you are not using Python

## Facets
- artifact type: library
- maturity: maintenance
- function: logging, serialization
- domain: developer-tools, backend
- platform: python, cross-platform, windows
- tags: python-logging, -logging, rotating-logfiles, colored-console-output, zero-dependency, command-line, linux, macos

## Member repositories
- metachris/logzero (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:14.998085+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:09:24.082127+00:00, confidence not recorded.
  - readme: https://github.com/metachris/logzero (fetched 2026-08-28T04:03:14.998085+00:00, sha 3730ad39f163)
  - registry_pypi: https://pypi.org/pypi/logzero/json (fetched 2026-08-29T13:10:07.693791+00:00, sha 3accea9b2efe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
