Registry / logging / evalphobia-logrus-fluent

evalphobia-logrus-fluent

JSON →
library0.5.4gogounverified

A Logrus hook for sending log entries to Fluentd.

go get github.com/evalphobia/logrus_fluent
INSTALL
IMPORT
SIG · EVALPHOBIA-LOGRUS-
E
evalphobia-logrus-fluent
logginggov0.5.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_fluent
✓ github.com/evalphobia/logrus_fluent

Initialize a Fluentd hook and add it to Logrus.

package main import ( "github.com/evalphobia/logrus_fluent" "github.com/sirupsen/logrus" ) func main() { hook, err := logrus_fluent.NewWithConfig(logrus_fluent.Config{ Host: "localhost", Port: 24224, }) if err != nil { logrus.Fatal(err) } logrus.AddHook(hook) logrus.Info("hello fluentd") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
44
Resources
evalphobia-logrus-fluent — go get evalphobia-logrus-fluent · libregistry