https://github.com/histrio/python-couchdblogger
Python CouchDB logging handler
https://github.com/histrio/python-couchdblogger
couchdb logging
Last synced: 3 months ago
JSON representation
Python CouchDB logging handler
- Host: GitHub
- URL: https://github.com/histrio/python-couchdblogger
- Owner: histrio
- Created: 2013-05-20T18:12:33.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T17:32:12.000Z (over 8 years ago)
- Last Synced: 2026-03-15T05:28:28.939Z (3 months ago)
- Topics: couchdb, logging
- Language: Python
- Homepage: http://blog.falseprotagonist.me/posts/python-couchdb-logging-handler.html
- Size: 293 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
python-couchdblogger
====================
[](https://travis-ci.org/histrio/python-couchdblogger)
[](https://coveralls.io/r/histrio/python-couchdblogger?branch=master)
[]()
[](https://requires.io/github/histrio/python-couchdblogger/requirements/?branch=master)
[](https://pypi.python.org/pypi/couchdblogger/)
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