Registry /
logging / evalphobia-logrus-fluent
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.