Skip to main content

Logmongo: Log messages to a capped MongoDB collection

Project description

Installation
=================

easy_install logmongo

What does it do?
=====================

Send complex log records (dicts or **kwargs) to capped MongoDB collections. Capped collections are created automatically. Centralize remote and local logs asynchronously. Write simple queries to search the logs for trends and analytics. A capped collection will not grow beyond its specified max size and will auto expire old records first.

How does it work?
=====================

Example::

from logmongo import Logmongo

log = Logmongo()

log.write( message='No required kwargs or fields!' )

entry = {
'tags':['but','we','like','tags'],
'level':'info'
}
log.write( entry )

List of methods::

import logmongo
help( logmongo )


More examples?
====================

checkout tests.py inside


License
===========

Public Domain


How do I thank you?
=======================

Write me an email! I always respond back!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for logmongo, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size logmongo-0.0.1-py2.7.egg (4.0 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size logmongo-0.0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page