Graylog2/gelf-rb — pull request #11 by blasterpal (2012-12-11 18:58:37+00:00)
Title: Adding logging file exclusions array to initializer

We have a use case where we are creating our own custom Logging device using another Gem called Lumberjack. When using these devices, the file/line reported in Graylog is our custom Logging device rather than the calling code that implements our device.

Therefore we augmented Gelf-rb such that the original 'lib/gelf' pattern that was checked with an 'include?' is now a regex. Secondly, the initializer allows for an array of patterns to be supplied so that our own custom Logging devices won't be shown as the file/line in Graylog in addition to 'lib/gelf'.

Cheers,
Hank and Obie