customink / central_logger

Ruby Mongo DB Logger for Rails - centralized logging for rails apps in MongoDB. Converted to gem, added global exception logging, and added Rails 3 (or 2) support.
http://blog.philburrows.com/articles/2009/09/28/rails-logging-with-mongodb/
MIT License
128 stars 35 forks source link

mongo is dead. love live moped. #30

Open ahoward opened 12 years ago

ahoward commented 12 years ago

mongoid is the top ODM for use in rails' projects attm, and it's dropping support for the mongo drive in lieu of moped

https://github.com/mongoid/moped

most importantly 'mongo' and 'moped' cannot co-exist in the same codebase to people using mongoid will soon not be able to use central_logger in rails' projects.

there seems to be two main ways forward

1) factor out a driver layer in the code (if defined?(Mongo) AND if defined?(Moped))

2) drop mongo support entirely and move to moved.

thoughts?

astupka commented 12 years ago

I noticed it only works with ruby >= 1.9.2. I could probably just branch and create a version that works with moped, assuming it passes the current central logger tests.

Some of the replica set testing meant I had to write retry loops for DML, so if moped solved that I'd be more excited.

Alex