uber-go

    uber-go/zap

    Blazing fast, structured, leveled logging in Go.

    observability
    golang
    logging
    structured-logging
    zap
    Go
    MIT
    24.7K stars
    1.6K forks
    24.7K GitHub watchers
    Updated Oct 26, 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.

    No releases in the last 90 days; the most recent was 181 days ago, with 143 contributors on GitHub.

    Gained 37% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides blazing fast, structured, leveled logging for Go applications with both type-safe and loosely typed APIs.
    • Delivers high performance with reflection-free, zero-allocation JSON encoding, minimizing CPU overhead and memory allocations.
    • Use for logging in high-throughput Go services where minimizing latency and memory usage is critical.
    • Use for applications requiring structured, leveled logs to improve observability and debugging in production environments.
    • Use for developers needing flexible logging APIs that balance speed and ease of use with type safety or printf-style formatting.

    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
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Blazing fast, structured, leveled logging in Go.

    go get -u go.uber.org/zap

    Note that zap only supports the two most recent minor versions of Go.

    In contexts where performance is nice, but not critical, use the SugaredLogger. It's 4-10x faster than other structured logging packages and includes both structured and printf-style APIs.

    When performance and type safety are critical, use the Logger. It's even faster than the SugaredLogger and allocates far less, but it only supports structured logging.

    See the documentation and FAQ for more details.

    Excerpt from the uber-go/zap 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

    1.6K+40

    Open issues

    202+12

    Compared with peers in Observability

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    uber-go/zap compared with Observability repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    Asymptote-Labs/agent-beacon3.3K+36040today
    openobserve/openobserve22.8K+23540today
    cilium/cilium25.8K+52653 days ago
    grafana/loki29.1K+42651 day ago
    uber-go/zap24.7K—55181 days ago
    Tracer-Cloud/opensre12.5K—45today
    Category median22.8K+14445—

    Also by uber-go

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description