Skip to content

python logging handler for mongo database

License

Notifications You must be signed in to change notification settings

starenka/log4mongo-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log4mongo-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
    import log4mongo.handlers.MongoHandler

    logger = logging.getLogger('test')
    logger.addHandler(MongoHandler(host='localhost'))
    logger.warning('test')

Author
------
char0n (Vladimir Gorej) <gorej@mortality.sk>

References
----------
[1] http://www.mongodb.org/
[2] http://docs.python.org/library/logging.html
[3] http://github.com/mongodb/mongo-python-driver

About

python logging handler for mongo database

http://log4mongo.org

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%