structlog
Structured logging library for Python with composable processors.
3. Used by agents' projects
Dependency in 71 public GitHub projects set up for AI coding agents that we scanned (1.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What structlog does
Structured logging library for Python with composable processors.
structlog popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How structlog is used
- structlog is a dependency in 71 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.4% of the 1,623 Python ones), #7 of 121 in logging, monitoring and analytics.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 286; those are left out of every share on this page.
- The most used alternative in our scan is Loguru (66 projects).
- Projects that use it most often also use Pydantic (78.9%), Pydantic Settings (57.7%), Uvicorn (56.3%).
By coding agent
Often used with
More about structlog
Funding
- GitHub Sponsors: https://github.com/hynek
- Tidelift: https://tidelift.com/funding/github/pypi/structlog
- thanks.dev: https://thanks.dev/u/gh/hynek
- Own page: https://hynek.me/say-thanks/
- 48 GitHub sponsors
More in Logging, monitoring and analytics
Alternatives
structlog This page
Simplified Python logging library with intuitive API and structured logging.
JSON formatter for Python logging to emit structured logs for log aggregation.
Get started
Install it.
pip install structlogNo step-by-step start for structlog yet: we have not written its hand-checked card.