handler for MongoDB database for python logging
Project description
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')
References
[1] http://www.mongodb.org/ [2] http://docs.python.org/library/logging.html [3] http://github.com/mongodb/mongo-python-driver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
log4mongo-1.0rc2.tar.gz
(3.5 kB
view details)
File details
Details for the file log4mongo-1.0rc2.tar.gz.
File metadata
- Download URL: log4mongo-1.0rc2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d1724e744fb85172fed89bd067529e3b3d8c45a04a27756bd7f3051662f2c6
|
|
| MD5 |
27f2eef6fa2168784b6b05aacf21cdac
|
|
| BLAKE2b-256 |
64bd3d611767e8513c6f1de7a4fd890572e262ea2d78b7ea28b77dc96d79a53c
|