github.com/rs/zerolog

Zerolog

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

91

Decision Signals

Health score 91/100, confidence 100/100.

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

Install

go get github.com/rs/zerolog

Package Data

updated May 28, 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 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 100% confidence
97

#2 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 343 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