Rack-mlog is a project mainly written in Ruby, based on the MIT license.
rack-mlog is a rack middleware to provide statistics and request logging via a MongoDB collection.
= rack-mlog
rack-mlog is a rack middleware to provide statistics and request logging via a MongoDB Database.
gem install rack-mlog
Example config.ru:
require 'rack/mongolog'
use Rack::MongoLog run MyApp.new
Example config.ru with a custom MongoDB:
require 'rack/mongolog'
use Rack::MongoLog :uri => 'mongodb://user:[email protected]:27051/mysite' run MyApp.new
Since this is a rack middleware it is fully compatible with any other rack compatible framework such as sinatra, rails, etc. It also works on heroku with MongoHQ.
== mlog Configuration
mongodb://user:[email protected]:27051/mysite
mlog
== Example maps