logmongo 0.1.4

Log messages to a capped MongoDB collection
logmongo is a tool to log messages to a capped MongoDB collection.

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

last updated on:
July 15th, 2012, 22:58 GMT
price:
FREE!
developed by:
Russell Ballestrini
license type:
Public Domain 
category:
ROOT \ System \ Logging

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT