go.uber.org/zap

Zap

Package zap provides fast, structured, leveled logging.

97

Decision Signals

Health score 97/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 100
Developer DX 97
Confidence 100

Install

go get go.uber.org/zap

Package Data

updated May 28, 2026
Latest versionv1.28.0
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 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 343 imported-by 100% confidence
91

#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
91

#3 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
89

#4 log

Go Logging Libraries 0 stars 3.2K imported-by 75% confidence
74

#5 oops

🔥 Error handling library with context, assertion, stack trace and source fragments

Go Logging Libraries 0 stars 332 imported-by 75% confidence
74