Simple module for logging to CouchDB.


Keywords
couchdb logging logger handler
License
Other
Install
pip install couchdblogger==0.1.3

Documentation

python-couchdblogger

Build Status Coverage Status PyPI Requirements Status

Supported Python versions

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}))

Script to run tests:

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