No commit activity in last 3 years
No release in over 3 years
Add color, DB time (Rails), etc to your mongo logs. Requires just mongo gem; compatible with Mongoid 5-7, Rails, etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
< 8, >= 5.1.1
< 6, >= 4.2
~> 10.0

Runtime

~> 2.1
 Project Readme

MongoLogsOnRoids

Better logging for mongodb on Ruby.

Compatible with just the mongo gem (v2.1+). Auto-detects Mongoid 5-7 and Rails and enables appropriate features.

Makes mongo logs more awesome with:

  • Colorized logging
  • Calculating and displaying total time in mongo (Rails): Completed 200 OK in 13ms (Views: 0.2ms | Mongo: 3.2ms)

Installation

Install like any other gem. Add to your Gemfile:

gem 'mongo_logs_on_roids'

Usage

Under normal circumstances, should activate itself automatically.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/zarqman/mongo_logs_on_roids.

License

The gem is available as open source under the terms of the MIT License.

Inspired by mongoid_colored_logger, by Roman Shterenzon (thanks!).