github.com/apex/log

log

Structured logging package for Go.

73

Decision Signals

Health score 73/100, confidence 65/100.

Strong
Maintenance 27
Adoption 100
Security 92
Maturity 83
Developer DX 91
Confidence 65

Install

go get github.com/apex/log

Package Data

updated Jun 11, 2026
Latest versionUnknown
Imported by4.7K packages
Stars1.4K
Forks112
Last activity2 years ago
Latest releaseUnknown
LicenseMIT
Known vuln records0

API Surface

102 symbols
SymbolKindSynopsis
Entry Type type Entry struct{ ... }
Entry.Debug Method func (e *Entry) Debug(msg string)
Entry.Debugf Method func (e *Entry) Debugf(msg string, v ...interface{})
Entry.Error Method func (e *Entry) Error(msg string)
Entry.Errorf Method func (e *Entry) Errorf(msg string, v ...interface{})
Entry.Fatal Method func (e *Entry) Fatal(msg string)
Entry.Fatalf Method func (e *Entry) Fatalf(msg string, v ...interface{})
Entry.Fields Field Fields Fields
Entry.Info Method func (e *Entry) Info(msg string)
Entry.Infof Method func (e *Entry) Infof(msg string, v ...interface{})
Entry.Level Field Level Level
Entry.Logger Field Logger *Logger

Maintained Alternatives

limited recent repository activity

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

Package zap provides fast, structured, leveled logging.

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

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

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

#6 phuslu/log

Fastest structured logging

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

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 Zap

Package zap provides fast, structured, leveled logging.

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

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

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