Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

log4mongo-python on GitHub

log4mongo-python on PyPi

 

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

 


 

 

 

  • No labels