public
Created

  • Download Gist
mongodb.log.rb
Ruby
1 2 3 4
if Rails.env != 'production'
logger = Logger.new(Rails.root.join('log', 'mongodb.log'))
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => logger)
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.