gemnasium / logrus-graylog-hook

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

Log level for hook #25

Closed stgleb closed 7 years ago

stgleb commented 7 years ago

Why you've not added log level field for hook? I' suffering from the same problem in logstash hook. I am developing high performance system and it degrade very much if it needs to allocate memory per each log entry, I want just to collect those messages that have severity INFO or higher.

gravis commented 7 years ago

You may want to use the Level field then: https://github.com/gemnasium/logrus-graylog-hook/blob/master/graylog_hook.go#L28