rack-mlog

rack-mlog is a rack middleware to provide statistics and request logging via a MongoDB Database.

Example config.ru

require 'rack/mongolog'

use Rack::MongoLog
run MyApp.new

This will work on Heroku with MongoHQ.

mlog Configuration

  • :uri - This is the URI of the MongoDB, such as: ‘mongodb://user:[email protected]:27051/mysite`

  • :collection - To specify a collection to use, default is ‘mlog`