Registry / logging / gemnasium-logrus-graylog-hook-v3

gemnasium-logrus-graylog-hook-v3

JSON →
library3.2.2gogounverified

A Logrus hook for sending log entries to Graylog via GELF.

go get github.com/gemnasium/logrus-graylog-hook/v3
INSTALL
IMPORT
SIG · GEMNASIUM-LOGRUS-G
G
gemnasium-logrus-graylog-hook-v3
logginggov3.2.2
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.

graylog
github.com/gemnasium/logrus-graylog-hook/v3

Send log messages to Graylog using Logrus

package main import ( "github.com/gemnasium/logrus-graylog-hook/v3" "github.com/sirupsen/logrus" ) func main() { hook := graylog.NewGraylogHook("udp://localhost:12201", map[string]interface{}{"facility": "test"}) logrus.AddHook(hook) logrus.Info("Hello Graylog") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources