Log4mongo for Python

Skip to end of metadata
Go to start of metadata

log4mongo-python (download)

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

mongodb-log

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.