I\'m trying to log requests for my REST API application. I\'m using rails notifications for this , like here http://railscasts.com/episodes/249-notifications-in-rails-3
UPDATE:
It's not straightforward and needs some tweak around..
Not unless you write your own Railtie to hook into this like Active Record
, but it's a bit more complex than copying what Active Record
has...
But here's how it does it:
1) Log Subscriber
2) Railtie
3) Controller Runtime
I hope that you got the hint of how to start getting into it.
Cheers!