Cysharp/ZLogger
Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 91
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 23.0
- age_days: 2353
- days_rel: 604
- days_push: 56
- n_releases_24m: 5
Adoption not part of the score
1763 stars · 127 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ZLogger is a zero-allocation text and structured logging library for .NET and Unity, built on top of Microsoft.Extensions.Logging. It uses C# 10 interpolated string handlers and source generators to format logs directly in UTF8, avoiding boxing and encoding overhead for maximum performance.
Use cases
- fast structured logging for ASP.NET Core apps
- zero-allocation logging in high-throughput .NET services
- cloud-native console logging for containers
- efficient file logging without per-write flush overhead
- logging in Unity games with Microsoft.Extensions.Logging
- output structured JSON logs via System.Text.Json
When to choose
- you need the fastest possible logging with minimal allocations in .NET
- your app already uses Microsoft.Extensions.Logging and you want to avoid bridge overhead
- you want both text and structured (JSON) log output with the same API
- you run .NET 8+ or Unity and want interpolated-string-based logging
When to avoid
- you need a logger with a large ecosystem of third-party sinks and integrations
- your target runtime is older than .NET 8 and you need the latest performance features
- you prefer configuration-driven logging APIs over interpolated string syntax
Facets
library · maturity active
logging serialization developer-tools backend performance dotnet cross-platform zero-allocation structured-logging microsoft-extensions-logging source-generator unity utf8 high-performance
1 source
- readme: https://github.com/Cysharp/ZLogger · fetched 2026-08-28 · ccdeaa29d349
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Cysharp/ZLogger | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem