-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
Hello,
i'm testing your library right now to use it together with a fluentD stack and it looks like we could need an additional delimiter to the fired messages.
So would it be possible to configure an additional delimiter for the hook? For example a nullcharacter?
This could be easily done like this
func (f LogstashFormatter) Format(e *logrus.Entry) ([]byte, error) {
ne := copyEntry(e, f.Fields)
dataBytes, err := f.Formatter.Format(ne)
releaseEntry(ne)
dataBytes = append(dataBytes, []byte("\000")...)
return dataBytes, err
}
What do you think about it?
Thanks
eloo