Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

dimagi/couchlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Couchlog

Build Status Test coverage PyPi version PyPi downloads

A django and couch-based logger for all your distributed error-tracking needs.

To configure (Django 1.3+) just add a line like this to your LOGGING setting (which is based on logging.config.dictConfig)

LOGGING = {
    'handlers': {
        'couchlog':{
            'level':'INFO',
            'class':'couchlog.handlers.CouchHandler',
        },
    },
    'loggers': {
        '': {
            'handlers':['couchlog'],
            'propagate': True,
            'level':'INFO',
        },
    }
}

By default couchlog views require superuser permissions, but you can override it by setting COUCHLOG_AUTH_DECORATOR in settings.py to a different permission decorator.