Graylog2/gelf-rb — pull request #8 by mitnal (2012-05-25 13:32:21+00:00)
Title: Rails tagged log support

Hi,

I just added Rails tagged logging support (via `config.log_tags` / `default_options['tags']`), similar to `ActiveSupport::TaggedLogging`.

The Tags are added to the hash as custom gelf message (`'_tag_name' => `).

Example usage:

```ruby
config.log_tags = [:uuid, :remote_ip]
config.logger = GELF::Logger.new("localhost", 12201, 'LAN', {
tags: [:some_name_for_uuid, :some_name_for_remote_ip] # same order as config.log_tags !
})
```