Registry / logging / sirupsen-logrus

sirupsen-logrus

JSON →
library1.9.4gogounverified

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

go get github.com/sirupsen/logrus
INSTALL
IMPORT
SIG · SIRUPSEN-LOGRUS
S
sirupsen-logrus
logginggov1.9.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

logrus
✓ github.com/sirupsen/logrus

Log a structured info message with fields.

package main import ( "github.com/sirupsen/logrus" ) func main() { logrus.WithFields(logrus.Fields{ "animal": "walrus", }).Info("A walrus appears") }
Debug
Known issues
gotchaLogrus is in maintenance mode; the author recommends using a more modern logger like zerolog or zap.
fix
Consider migrating to zerolog or zap for better performance and active development.
affects: >=1.0.0
Upgrade
Version history
1.9.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
Resources
sirupsen-logrus — go get sirupsen-logrus · libregistry