Sha256: 6d5f6bfaa5dff3cfa4d7a2a40fb900afe9fe7ee96daafa63276b54e98be4a6bd
Contents?: true
Size: 990 Bytes
Versions: 3
Compression:
Stored size: 990 Bytes
Contents
# Mongo Active Instrumentation Pretty logging with colors for mongo/mongoid with rails. ## Installation Add this line to your application's Gemfile: ```ruby gem 'mongo_active_instrumentation' ``` And then execute: ```bash $ bundle ``` ## Example ``` Started GET "/" for ::1 Processing by PagesController#show as HTML Parameters: {"path"=>"/"} Mongo (2.1ms) {"find"=>"users", "filter"=>{"deleted_at"=>nil, "_id"=>BSON::ObjectId('4f796a9e83fa26bacf000360')}, "limit"=>1, "singleBatch"=>true} Completed 200 OK in 54ms (Views: 9.7ms | Mongo: 2.1ms) ``` vs ``` Started GET "/" for ::1 Processing by PagesController#show as HTML Parameters: {"path"=>"/"} MONGODB | localhost:27017 | app_development.find | STARTED | {"find"=>"users", "filter"=>{"deleted_at"=>nil, "_id"=>BSON::ObjectId('4f796a9e83fa26bacf000360')}, "limit"=>1, "singleBatch"=>true} MONGODB | localhost:27017 | app_development.find | SUCCEEDED | 0.0021879999999999998s Completed 200 OK in 54ms (Views: 9.7ms) ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo_active_instrumentation-0.1.2 | README.md |
mongo_active_instrumentation-0.1.1 | README.md |
mongo_active_instrumentation-0.1.0 | README.md |