log4mongo / log4mongo-python

python logging handler for mongo database
http://log4mongo.org
Other
111 stars 37 forks source link

Enable reusing of mongodb connection for multiple hanlders #12

Closed oz123 closed 9 years ago

oz123 commented 9 years ago

Added option to reuse connections.

If reuse is set to false every handler will have it's own MongoClient. This could hammer down your MongoDB instance, but you can still use this option.

The default is True. As such a program with multiple handlers that log to mongodb will have those handlers share a single connection to MongoDB.