github.com/rs/zerolog

Zerolog

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

87

Decision Signals

Health score 87/100, confidence 90/100.

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

Install

go get github.com/rs/zerolog

Package Data

updated May 31, 2026
Latest versionv1.35.1
Imported by30.5K packages
Stars12.4K
Forks624
Last activity1 months 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 Logrus

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

Go Logging Libraries 25.7K stars 240.0K imported-by 100% confidence
96

#2 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 0 imported-by 65% confidence
87

#3 phuslu/log

Fastest structured logging

Go Logging Libraries 0 stars 343 imported-by 80% confidence
73

#4 slog-multi

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

Go Logging Libraries 0 stars 237 imported-by 80% confidence
73

#5 oops

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

Go Logging Libraries 0 stars 332 imported-by 40% confidence
59