roidrage/lograge — pull request #14 by urbanautomaton (2012-09-20 11:18:52+00:00)
Title: Handle Rails 3.0.x request format payload

Hi,

In Rails 3.0.x, somewhat annoyingly the instrumentation payload is different, including a list of formats rather than a single request format:

```ruby
{
:controller=>"HomepageController",
:action=>"index",
:params=>{"controller"=>"homepage", "action"=>"index"},
:formats=>[:html],
:method=>"GET",
:path=>"/",
:status=>302,
:view_runtime=>nil,
:db_runtime=>nil,
:user=>"simon",
:ip=>"127.0.0.1"
}
```

The included patch is the rather bodgy way of supporting Rails 3.0.x we're using in our fork - if you'd prefer this to be done a different way, just let me know and I'm happy to amend it accordingly.

Cheers,
Simon

p.s. thanks for creating this gem; I can't stop tailing our logs now, it's bliss. :-)