coloredlogs
Add colored output to Python's logging module for better terminal readability.
Logging, monitoring and analytics PyPI MIT
How coloredlogs is used
coloredlogs is a dependency in 6 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 350 projects, and what it is used with below comes from all of them. The most used alternative in our scan is structlog (71 projects). Projects that use it most often also use NumPy (98.3%), packaging (95.4%), attrs (94.6%).
coloredlogs popularity over time
Gid Score 64: downloads 84, use in agent projects 69, GitHub stars n/a, downloads trend 51 (each 0-100). How it is calculated.
Often used with coloredlogs
| NumPy | 98.3% of coloredlogs projects · 16.9× more than average |
|---|---|
| packaging | 95.4% of coloredlogs projects · 65.1× more than average |
| attrs | 94.6% of coloredlogs projects · 136.5× more than average |
| humanfriendly | 94.6% of coloredlogs projects · 1174.2× more than average |
| Protocol Buffers | 92.3% of coloredlogs projects · 127.3× more than average |
| Requests | 91.1% of coloredlogs projects · 13.4× more than average |
| aiohttp | 90.6% of coloredlogs projects · 43.9× more than average |
| Click | 90.0% of coloredlogs projects · 36.0× more than average |
From all 350 projects in our scan that use coloredlogs, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list coloredlogs as a dependency.
Install
| Package | pip install coloredlogs |
|---|---|
| Main stacks | Python (348), Next.js (2) |
| Example projects | Paper2Poster/Paper2Poster, apconw/Aix-DB, Decade-qiu/CookHero, JasonHonKL/spy-search, YuhangChen1/Paper2All |
Alternatives to coloredlogs
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside coloredlogs are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| structlog pypi Structured logging library for Python with composable processors. |
67 | 71 (4.4%) | 25.3M | 4,977 | MIT OR Apache-2.0 |
| Loguru pypi Simplified Python logging library with intuitive API and structured logging. |
75 | 65 (4.0%) | 16.9M | 24.2K | MIT |
| python-json-logger pypi JSON formatter for Python logging to emit structured logs for log aggregation. |
66 | 26 (1.6%) | 22.7M | — | BSD-2-Clause |
More in Logging, monitoring and analytics: Vercel Analytics psutil Vercel Speed Insights Sentry for Next.js OpenTelemetry Pino pino-pretty PostHog JS