Registry / logging / t-tomalak-logrus-easy-formatter

t-tomalak-logrus-easy-formatter

JSON →
library0.0.0-20190827215021-c074f06c5816gogounverified

Provides an easy way to format Logrus logger output with customizable templates.

go get github.com/t-tomalak/logrus-easy-formatter
INSTALL
IMPORT
SIG · T-TOMALAK-LOGRUS-E
T
t-tomalak-logrus-easy-formatter
logginggov0.0.0-20190827215021-c074f06c5816
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.

easy
github.com/t-tomalak/logrus-easy-formatter

Configures Logrus to use a custom format string.

package main import ( "github.com/sirupsen/logrus" "github.com/t-tomalak/logrus-easy-formatter" ) func main() { logrus.SetFormatter(&easy.Formatter{ LogFormat: "[%lvl%]: %msg%\n", }) logrus.Info("Hello, world!") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190827215021-c074f06c5816latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
Resources
t-tomalak-logrus-easy-formatter — go get t-tomalak-logrus-easy-formatter · libregistry