github.com/apex/log

log

Package log implements a simple structured logging API designed with few assumptions.

58

Decision Signals

Health score 58/100, confidence 80/100.

Review
Maintenance 15
Adoption 69
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/apex/log

Package Data

updated May 28, 2026
Latest versionv1.9.0
Imported by4.7K packages
Stars0
Forks0
Last activity5 years ago
Latest releaseUnknown
LicenseUnknown
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 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 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

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

#5 log

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

#6 oops

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

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

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

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

#5 log

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