Structlog

Structured logging library for Python that wraps stdlib logging with key-value context and pluggable processors.

logging-frameworks
80
Hero Score
Popularity
70
Performance
85
Ecosystem
75
Maturity
100
Dev Experience
68
⭐ 4,971 stars⬇ 24.4M downloads/wkFirst release: Sep 2013Last release: Jun 2026
Async Support: YesPlugin Extensions: HighSpeed: FastDoc Quality: Very highLearning Curve: Medium

Pros

  • • Structured key-value logs
  • • Pluggable processor pipeline
  • • Integrates with stdlib logging

Cons

  • • Steeper initial learning curve
  • • Configuration can feel verbose
  • • Output formatting requires setup

Alternatives in logging-frameworks

Compare Python Packages with ease.