lib/dripdrop/mlogger.rb in dripdrop-0.0.2 vs lib/dripdrop/mlogger.rb in dripdrop-0.0.3
- old
+ new
@@ -11,9 +11,10 @@
@mongo_collection.insert(message.to_hash)
end
end
end
+ #MongoDB Logger for DripDrop::Message messages
class MLogger
attr_reader :sub_address, :sub_reactor, :mongo_host, :mongo_port, :mongo_db,
:mongo_connection, :mongo_collection
def initialize(sub_address='tcp://127.0.0.1:2901',mhost='127.0.0.1',mport=27017,mdb='dripdrop')