Simple module for logging to CouchDB. Probably not best choise for logging backend, because CouchDB is not good with massive write operations.
https://pypi.python.org/pypi/couchdblogger
Usage:
import couchdblogger
logger = logging.getLogger('mylogger')
logger.setLevel('ERROR')
logger.addHandler(couchdblogger.CouchDBLogHandler())
Usage with ssl:
import couchdblogger
logger = logging.getLogger('mylogger')
logger.setLevel('ERROR')
logger.addHandler(couchdblogger.CouchDBLogHandler(ssl=True, request_args={"verify": True}))
1- Install:
python setup.py install
pip install mock
pip install nose
2- Run tests:
python setup.py test
or:
nosetests -vv
Run nosetests with coverage:
nosetests --with-coverage; coverage report