Skip to main content

Simple per-model log models for Django apps

Project description

Simple per-model log models for Django apps.

Build Status Coverage Status Documentation Status

Compatibility

  • Django 1.8+
  • Python 2.7 or Python 3.4+

Basic Usage

from django.db import models
from analog import define_log_model

class MyModel(models.Model):
    value = models.IntegerField(default=0)

MyModelLogEntry = define_log_model(MyModel)

m = MyModel.objects.create(value=42)
m.add_log_entry('Something occurred')
assert m.log_entries.last().message == 'Something occurred'

Development

pip install -e .
pip install -r requirements-dev.txt

Tests

py.test

Documentation

sphinx-build -b html docs docs/_build

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 django-analog, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_analog-1.0.0-py2.py3-none-any.whl (9.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-analog-1.0.0.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page