mongodb_logger icon indicating copy to clipboard operation
mongodb_logger copied to clipboard

Mongoid 5.1 support

Open dmitrypol opened this issue 8 years ago • 1 comments

Is anyone having issues with Mongoid 5.1?

Here is my setup. Rails 4.2.5.1 / Mongoid 5.1.1 / Mongo 2.4.14 / mongodb_logger 0.6.5. I see the development_log collection in my mongo DB but I get these errors trying to run rake mongodb_logger:* tasks.

MongodbLogger WARNING: Using Rails Logger due to exception: uninitialized constant Mongo::MongoClient

Also nothing actually gets logged into development_log collection.

Here is my config/mongodb_logger.yml development: database: rails425_dev capsize: <%= 10.megabytes %> host: localhost port: 27017 replica_set: false

dmitrypol avatar Feb 20 '16 16:02 dmitrypol

mongodb_logger support mongo gem 1.x version. I am trying to make it working with mongo 2.x gem in mongo2 branch, but still not some tests pass for mongodb (some problems with users and roles inside mongodb). I am ready to review PR, which will help me.

le0pard avatar Feb 20 '16 21:02 le0pard