Open iurydias opened 2 years ago
Hey,
I was trying to create a syncronous hook with no compression and it simply not send to graylog, it just work with assyncronous.
obs: I'm using v3.
graylogHook = graylog.NewGraylogHook(graylogURL, extra) w := graylogHook.Writer(); if writer, ok := w.(*graylog.UDPWriter); ok { writer.CompressionType = graylog.NoCompress _ = graylogHook.SetWriter(writer) }
@iurydias if you change the compression type, a new writer is needed:
https://github.com/gemnasium/logrus-graylog-hook/blob/a6f46d6366e11c4fc143ec5155d8f99c3b35ac83/gelf_writer.go#L234
@gravis how should I do that? Doing SetWriter() isn't enough, as I did?
Hey,
I was trying to create a syncronous hook with no compression and it simply not send to graylog, it just work with assyncronous.
obs: I'm using v3.