# zap

> Fast, structured, leveled logging for Go

Source: https://talira.ai/catalog/zap-yqmdrs48
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [observability / logging](https://talira.ai/categories/observability/logging), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^1]
- Pricing: Free and open source
- Pricing notes: Free and open source (MIT).
- Free tier: yes
- Backed by: [Uber](https://talira.ai/orgs/uber.md)

zap is a structured, leveled logging library for Go from Uber. Its base Logger uses strongly typed fields and a reflection-free, zero-allocation JSON encoder to keep logging cheap in hot paths, and its SugaredLogger, built on top, adds a looser key-value and printf-style API that is still several times faster than most structured loggers. It ships production and development presets, configurable encoders, levels and sinks, and sampling. Its 1.x APIs are stable with no breaking changes, and it supports the two most recent minor versions of Go. Install it with go get go.uber.org/zap.

## Links

- GitHub: https://github.com/uber-go/zap
- Docs: https://pkg.go.dev/go.uber.org/zap

## Problems it solves

- structured JSON logging in a high-throughput Go service without slowing it down
- replace logrus because logging allocations show up in our Go profiles
- leveled logging with typed fields for a Go microservice

## Features

- zero-allocation JSON encoder
- typed structured fields
- SugaredLogger with key-value and printf-style APIs
- log levels and sampling
- production and development presets
- stable 1.x API

## Limitations

- Supports only the two most recent minor versions of Go.[^1]

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.50, adoption 0.88, momentum 0.69, community 0.88, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 8 commits in the last 90 days
- latest release v1.28.0 7 months ago
- 24.7k GitHub stars
- 155 contributors
- backed by Uber

## Alternatives

- [Logrus](https://talira.ai/catalog/logrus-qb6bhbyk.md): Structured, pluggable logging for Go

## Sources

[^1]: https://github.com/uber-go/zap (checked 24 Nov 2026)
