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

rhblind/django-timberjack

Repository files navigation

django-timberjack

Build Status Coverage Status

Write logs to MongoDB.

BIG FAT WARNING

Probably not a very good choice for storing logs, so consider this an experimental project I'll probably abandon once I've got a better solution.

Setup

Set up Mongo connections in settings.py

MONGO_CONNECTIONS = {
    'default': {
        'NAME': 'default',  # Hostname or URI. If using URI, it will override all other options.
        'HOST': os.environ.get('MONGO_HOST', 'localhost')
    }
}

Usage

The project contains a single document definition timberjack.documents.ObjectAccessLog. Use this to write object access log entries and optionally write a admin.LogEntry entry for the same record.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published