graylog-labs / gelf-rb

Ruby GELF library (Graylog Extended Log Format)
https://rubygems.org/gems/gelf
MIT License
153 stars 104 forks source link

Add additional non-Ruby logger levels for wider compatibility #52

Closed emsearcy closed 7 years ago

emsearcy commented 7 years ago

Since using this library can be used as more than a native ruby logger, it's useful to allow log entries to capture log levels other than the ones that are used in Ruby itself.

In particular, this is for the fluent-plugin-graylog project, which is currently having to map log levels of alert, critical, and notice from incoming messages to other log levels to get them into Graylog via gelf-rb.

ivan-mjch commented 7 years ago

The patch is missing emergency level (0).

emsearcy commented 7 years ago

Any update on this? I added the emergency level.