Log4mongo for Python
log4mongo-python is handler for MongoDB database for python logging
log4mongo-python is using pymongo driver - http://github.com/mongodb/mongo-python-driver
Requirements
- python
- pymongo
- MongoDB
Tested against python 2.6.6+, MongoDB 1.6.4+, pymongo 1.9\+
Configuration
Example handler python configuration::
import logging
from log4mongo.handlers import MongoHandler
logger = logging.getLogger('test')
logger.addHandler(MongoHandler(host='localhost'))
logger.warning('test')
Author
char0n (Vladimír Gorej) <gorej@codescale.net>
References
http://www.mongodb.org/
http://docs.python.org/library/logging.html
http://github.com/mongodb/mongo-python-driver
MongoDB logging library for Python