modulepackage
1.2.0
Repository: https://github.com/bluearchive/logrus_fluent.git
Documentation: pkg.go.dev
# README
Fluentd Hook for Logrus 
Usage
import (
"github.com/Sirupsen/logrus"
"github.com/evalphobia/logrus_fluent"
)
func main() {
hook := logrus_fluent.NewHook("localhost", 24224)
hook.SetLevels([]logrus.Level{
logrus.PanicLevel,
logrus.ErrorLevel,
})
logrus.AddHook(hook)
}
Special fields
Some logrus fields have a special meaning in this hook.
tag
is used as a fluentd tag. (iftag
is omitted, Entry.Message is used as a fluentd tag, unless a static tag is set for the hook withhook.SetTag
)
# Functions
ConvertToValue make map data from struct and tags.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author