gemnasium / logrus-graylog-hook

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

Last messages are not sent on program exit #3

Closed gravis closed 8 years ago

gravis commented 8 years ago

Since we're sending message in a goroutine, the very last messages are not sent to graylog on program exit, the routine being destroyed before the end of the queue.

gravis commented 8 years ago

We will probably add a Flush() method to be deffered, like glog

gravis commented 8 years ago

fixed in 1.1.0