Using Fleakr to Log API Calls
I just added a new feature to the fleakr gem that gives you the ability to log all calls to the API. To get started just point it to a logger:
Fleakr.logger = Logger.new('/tmp/fleakr.log')
This is great when just using the gem, but it's more useful when you're using it as part of your Rails app:
# config/initializers/fleakr.rb Fleakr.logger = RAILS_DEFAULT_LOGGER
By default, this logs all traffic (including file data if you're doing uploads), so you may want to turn down logging in development to see just the requests:
# config/environments/development.rb config.log_level = :info
If you missed it, check out my recent post to get started using Fleakr in your Rails app.
