Logging Packages
Structured and leveled logging libraries for capturing, formatting, and shipping application logs to observability pipelines (Winston, Pino, Loguru).
Packages in Logging
Kind
Sort:Used by Most Apps
OpenTelemetry Python SDK
The reference implementation of the OpenTelemetry API for Python - traces, metrics, and logs
loguru
A drop-in replacement for Python's standard logging module that makes logging enjoyable, with almost no setup required.
structlog
Structured, typed logging for Python built on plain functions and dictionaries instead of a bespoke logging DSL.
python-json-logger
Format Python's standard logging output as structured JSON
Pydantic Logfire
Python observability SDK from the Pydantic team, built on OpenTelemetry for tracing, metrics, and logs.
django-auditlog
Effortless audit logging of model changes for Django applications
starlette-context
Store and access per-request context data anywhere in a Starlette or FastAPI app.
coloredlogs
Colored, human-friendly terminal output for Python's built-in logging module.
concurrent-log-handler
Drop-in replacement for Python's RotatingFileHandler that lets multiple processes safely write to and rotate the same log file.
IceCream
A Python debugging library that prints both an expression and its value, so you never have to write print("x:", x) again.
spacy-loggers
Training-run loggers for spaCy: Weights & Biases, MLflow, ClearML, PyTorch, CuPy