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 2.2+, 3.0+
  • Python 3.6+

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

Supported by

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