Registry / logging / chappjc-logrus-prefix

chappjc-logrus-prefix

JSON →
library0.0.0-20180227015900-3a1d64819adbgogounverified

Package logrus-prefix provides a logrus formatter that adds a configurable prefix to log entries.

go get github.com/chappjc/logrus-prefix
INSTALL
IMPORT
SIG · CHAPPJC-LOGRUS-PRE
C
chappjc-logrus-prefix
logginggov0.0.0-20180227015900-3a1d64819adb
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_prefix
github.com/chappjc/logrus-prefix

Sets a custom prefix formatter for logrus output.

package main import ( "github.com/sirupsen/logrus" logrus_prefix "github.com/chappjc/logrus-prefix" ) func main() { logrus.SetFormatter(&logrus_prefix.TextFormatter{Prefix: "[APP]"}) logrus.Info("Hello") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180227015900-3a1d64819adblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
Resources
chappjc-logrus-prefix — go get chappjc-logrus-prefix · libregistry