github.com/sirupsen/logrus

Logrus

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

96

Decision Signals

Health score 96/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 100
Developer DX 91
Confidence 100

Install

go get github.com/sirupsen/logrus

Package Data

updated May 31, 2026
Latest versionv1.9.4
Imported by240.0K packages
Stars25.7K
Forks2.3K
Last activity22 days ago
Latest releasev1.9.4 (4 months ago)
LicenseMIT
Known vuln records0

API Surface

277 symbols
SymbolKindSynopsis
BufferPool Type type BufferPool interface{ ... }
BufferPool.Get Method Get func() *bytes.Buffer
BufferPool.Put Method Put func(*bytes.Buffer)
Entry Type type Entry struct{ ... }
Entry.Buffer Field Buffer *bytes.Buffer
Entry.Bytes Method func (entry *Entry) Bytes() ([]byte, error)
Entry.Caller Field Caller *runtime.Frame
Entry.Context Field Context context.Context
Entry.Data Field Data Fields
Entry.Debug Method func (entry *Entry) Debug(args ...interface{})
Entry.Debugf Method func (entry *Entry) Debugf(format string, args ...interface{})
Entry.Debugln Method func (entry *Entry) Debugln(args ...interface{})

Similar Packages

Go Logging Libraries

#1 Zerolog

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

Go Logging Libraries 12.4K stars 30.5K imported-by 90% confidence
87

#2 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 0 imported-by 65% confidence
87

#3 phuslu/log

Fastest structured logging

Go Logging Libraries 0 stars 343 imported-by 80% confidence
73

#4 slog-multi

🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

Go Logging Libraries 0 stars 237 imported-by 80% confidence
73

#5 oops

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

Go Logging Libraries 0 stars 332 imported-by 40% confidence
59