rs

    rs/zerolog

    #224 this week

    Zero Allocation JSON Logger

    observability
    golang
    json
    logging
    structured-logging
    zerolog
    Go
    MIT
    12.5K stars
    653 forks
    12.5K GitHub watchers
    Updated Oct 11, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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.

    Excerpt from the rs/zerolog README on GitHub (MIT license). © its authors.Read the full README on GitHub

    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

    rs/zerolog compared with Observability repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    Tracer-Cloud/opensre11.9K+49659107 days ago
    Effect-TS/effect17.4K+94751 day ago
    mlflow/mlflow28.5K+049200 days ago
    sirupsen/logrus25.8K+07547 days ago
    uber-go/zap24.7K+075168 days ago
    rs/zerolog12.5K+040—
    Category median24.7K+075—

    Discover Repositories

    Search across tracked repositories by name or description