gemnasium / logrus-graylog-hook

Graylog hook for logrus
MIT License
87 stars 63 forks source link

add automatic JSON marshalling of error messages for graylog #5

Closed rschmukler closed 8 years ago

rschmukler commented 8 years ago

This feature makes it so that if an error is reported with WithError and it doesn't know how to encode itself as JSON, the error's string is used to encode the error.

This makes it so that the error messages sent to Graylog via WithError are more useful than an empty object {} as they are currently sent.

gravis commented 8 years ago

Great PR, thanks!