Skip to main content

handler for MongoDB database for python logging

Project description

log4mongo-python

log4mongo-python is handler for MongoDB database for python logging, part of log4mongo.org project. 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
from log4mongo.handlers import MongoHandler

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

Author

char0n (Vladimir Gorej) <gorej@codescale.net>

References

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

Project details


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.0.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file log4mongo-1.0.tar.gz.

File metadata

  • Download URL: log4mongo-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for log4mongo-1.0.tar.gz
Algorithm Hash digest
SHA256 543886df166d9d5343304f26be03974bc93636e73d599f7b974d83b719778ef3
MD5 3cd6af52b9e1beaab788d8dd6bf75866
BLAKE2b-256 11a3209c8835718f93b97e28e4879fd978907d2e0bb6d3c0b84550337a003ad4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page