tcp outlet: add newline after each entry

otherwise tools like graylog don't parse it
This commit is contained in:
Christian Schwarz 2017-09-24 16:24:34 +02:00
parent c1a5b04065
commit 54b391f77c

View File

@ -62,6 +62,9 @@ func (h *TCPOutlet) WriteEntry(ctx context.Context, e logger.Entry) error {
}
_, err = h.conn.Write(b)
if err == nil {
_, err = h.conn.Write([]byte("\n"))
}
if err != nil {
return errors.Wrap(err, "cannot write")
h.conn.Close()