github.com/go-kit/log

log

Package log provides a structured logger.

76

Decision Signals

Health score 76/100, confidence 95/100.

Strong
Maintenance 38
Adoption 100
Security 92
Maturity 87
Developer DX 83
Confidence 95

Install

go get github.com/go-kit/log

Package Data

updated Jun 11, 2026
Latest versionv0.2.1
Imported by4.5K packages
Stars193
Forks19
Last activity1 years ago
Latest releasev0.2.1 (4 years ago)
LicenseMIT
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 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