github.com/go-kit/log

log

Package log provides a structured logger.

55

Decision Signals

Health score 55/100, confidence 75/100.

Caution
Maintenance 15
Adoption 62
Security 92
Maturity 55
Developer DX 83
Confidence 75

Install

go get github.com/go-kit/log

Package Data

updated May 28, 2026
Latest versionv0.2.1
Imported by4.5K packages
Stars0
Forks0
Last activity4 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

33 symbols
SymbolKindSynopsis
Logger Type type Logger interface{ ... }
Logger.Log Method Log func(keyvals ...interface{}) error
NewJSONLogger Function func NewJSONLogger(w io.Writer) Logger
NewLogfmtLogger Function func NewLogfmtLogger(w io.Writer) Logger
NewNopLogger Function func NewNopLogger() Logger
NewSyncLogger Function func NewSyncLogger(logger Logger) Logger
With Function func With(logger Logger, keyvals ...interface{}) Logger
WithPrefix Function func WithPrefix(logger Logger, keyvals ...interface{}) Logger
WithSuffix Function func WithSuffix(logger Logger, keyvals ...interface{}) Logger
LoggerFunc Type type LoggerFunc func(...interface{}) error
LoggerFunc.Log Method func (f LoggerFunc) Log(keyvals ...interface{}) error
StdlibAdapter Type type StdlibAdapter struct{ ... }

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