go.uber.org/zap

Zap

Package zap provides fast, structured, leveled logging.

92

Decision Signals

Health score 92/100, confidence 65/100.

Excellent
Maintenance 88
Adoption 100
Security 92
Maturity 83
Developer DX 97
Confidence 65

Install

go get go.uber.org/zap

Package Data

updated Jun 11, 2026
Latest versionUnknown
Imported by119.7K packages
Stars24.5K
Forks1.5K
Last activity1 months ago
Latest releasev1.28.0 (1 months ago)
LicenseMIT
Known vuln records0

API Surface

213 symbols
SymbolKindSynopsis
AtomicLevel Type type AtomicLevel struct{}
AtomicLevel.Enabled Method func (lvl AtomicLevel) Enabled(l zapcore.Level) bool
AtomicLevel.Level Method func (lvl AtomicLevel) Level() zapcore.Level
AtomicLevel.MarshalText Method func (lvl AtomicLevel) MarshalText() (text []byte, err error)
AtomicLevel.ServeHTTP Method func (lvl AtomicLevel) ServeHTTP(w http.ResponseWriter, r *http.Request)
AtomicLevel.SetLevel Method func (lvl AtomicLevel) SetLevel(l zapcore.Level)
AtomicLevel.String Method func (lvl AtomicLevel) String() string
AtomicLevel.UnmarshalText Method func (lvl *AtomicLevel) UnmarshalText(text []byte) error
NewAtomicLevel Function func NewAtomicLevel() AtomicLevel
NewAtomicLevelAt Function func NewAtomicLevelAt(l zapcore.Level) AtomicLevel
ParseAtomicLevel Function func ParseAtomicLevel(text string) (AtomicLevel, error)
Config Type type Config struct{ ... }

Similar Packages

Go Logging Libraries

#1 slog-multi

🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

Go Logging Libraries 626 stars 237 imported-by 100% confidence
95

#2 Zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging.

Go Logging Libraries 12.4K stars 30.5K imported-by 100% confidence
94

#3 logger

Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.

Go Logging Libraries 55 stars 615 imported-by 95% confidence
86

#4 Logrus

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

Go Logging Libraries 25.7K stars 0 imported-by 65% confidence
86

#5 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 0 imported-by 45% confidence
78