Graylog2 / go-gelf

GELF library for Go
http://godoc.org/github.com/Graylog2/go-gelf/gelf
MIT License
103 stars 64 forks source link

Omit empty optional/deprecated fields from gelf.Message serialization. #1

Closed lsowen closed 8 years ago

lsowen commented 8 years ago

The field "full_message" is optional, so exclude from the message when empty. Additionally, "facility" and "level" are deprecated, so omit when empty.

mariussturm commented 8 years ago

Thank you!