rs/zerolog
Zero Allocation JSON Logger
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #224 of 2,845 repositories GStars tracks this week (top 8%).
The project lists 170 contributors on GitHub.
Use Cases & Benefits
- Provides a fast, zero-allocation JSON logger for Go with a simple, chainable API focused on efficient structured logging.
- Delivers blazing fast performance with minimal memory allocations, outperforming many Go logging libraries while maintaining a clean API.
- Use for high-performance backend services requiring structured, leveled JSON logging with minimal runtime overhead.
- Use for Go applications needing contextual and error logging with stacktrace support integrated into standard and HTTP request contexts.
- Use for development environments requiring human-friendly, colorized console output alongside production-ready JSON logs.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
Watch-outs
- No GitHub releases; pin a commit or tag instead of a release.
General guidance from repository metadata, not legal advice. How we score
From the README
The zerolog package provides a fast and simple logger dedicated to JSON output.
Zerolog's API is designed to provide both a great developer experience and stunning performance. Its unique chaining API allows zerolog to write JSON (or CBOR) log events by avoiding allocations and reflection.
Uber's zap library pioneered this approach. Zerolog is taking this concept to the next level with a simpler to use API and even better performance.
To keep the code base and the API simple, zerolog focuses on efficient structured logging only. Pretty logging on the console is made possible using the provided (but inefficient)
zerolog.ConsoleWriter.Find out who uses zerolog and add your company / project to the list.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
653+25
Open issues
160+15
Compared with peers in Observability
Fastest-growing repositories GStars tracks in this cohort for the week of Oct 11, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| Tracer-Cloud/opensre | 11.9K | +496 | 59 | 107 days ago |
| Effect-TS/effect | 17.4K | +94 | 75 | 1 day ago |
| mlflow/mlflow | 28.5K | +0 | 49 | 200 days ago |
| sirupsen/logrus | 25.8K | +0 | 75 | 47 days ago |
| uber-go/zap | 24.7K | +0 | 75 | 168 days ago |
| rs/zerolog | 12.5K | +0 | 40 | — |
| Category median | 24.7K | +0 | 75 | — |
Discover Repositories
Search across tracked repositories by name or description