github.com/rs/zerolog

Zerolog

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

94

Decision Signals

Health score 94/100, confidence 100/100.

Excellent
Maintenance 90
Adoption 100
Security 92
Maturity 94
Developer DX 91
Confidence 100

Install

go get github.com/rs/zerolog

Package Data

updated Jun 11, 2026
Latest versionv1.35.1
Imported by30.5K packages
Stars12.4K
Forks622
Last activity9 days ago
Latest releaseUnknown
LicenseMIT
Known vuln records0

API Surface

367 symbols
SymbolKindSynopsis
Array Type type Array struct{}
Arr Function func Arr() *Array
Array.Bool Method func (a *Array) Bool(b bool) *Array
Array.Bytes Method func (a *Array) Bytes(val []byte) *Array
Array.Dict Method func (a *Array) Dict(dict *Event) *Array
Array.Dur Method func (a *Array) Dur(d time.Duration) *Array
Array.Err Method func (a *Array) Err(err error) *Array
Array.Errs Method func (a *Array) Errs(errs []error) *Array
Array.Float32 Method func (a *Array) Float32(f float32) *Array
Array.Float64 Method func (a *Array) Float64(f float64) *Array
Array.Hex Method func (a *Array) Hex(val []byte) *Array
Array.IPAddr Method func (a *Array) IPAddr(ip net.IP) *Array

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 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 65% confidence
92

#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