import (
"github.com/sirupsen/logrus"
"github.com/landru29/ovh-logrus-hook-graylog/grayloghook"
)
func main () {
logger := logrus.New()
graylogHost := "gra2.logs.ovh.com:12202"
graylogToken := "here-is-my-token"
logger.AddHook(grayloghook.NewGraylogHook(graylogHost, graylogToken, "example.org", &tls.Config{}))
logger.WithFields(map[string]string{
"foo": "example",
}).Printf("This is an example")
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
landru29/ovh-logrus-hook-graylog
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published