Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andersinno/django-analog
Simple logging models for Django apps :ledger:
https://github.com/andersinno/django-analog
django logging python
Last synced: about 16 hours ago
JSON representation
Simple logging models for Django apps :ledger:
- Host: GitHub
- URL: https://github.com/andersinno/django-analog
- Owner: andersinno
- License: mit
- Created: 2016-01-15T10:44:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T19:37:26.000Z (about 3 years ago)
- Last Synced: 2024-11-10T11:43:53.164Z (8 days ago)
- Topics: django, logging, python
- Language: Python
- Homepage:
- Size: 60.5 KB
- Stars: 4
- Watchers: 7
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Django-Analog
=============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
-----------.. code:: python
from django.db import models
from analog import define_log_modelclass 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.txtTests
~~~~~::
py.test
Documentation
~~~~~~~~~~~~~::
sphinx-build -b html docs docs/_build
.. |Build Status|
image:: https://github.com/andersinno/django-analog/workflows/Test/badge.svg
:target: https://github.com/andersinno/django-analog/actions
.. |Coverage Status|
image:: https://codecov.io/gh/andersinno/django-analog/branch/master/graph/badge.svg
:target: https://codecov.io/gh/andersinno/django-analog
.. |Documentation Status|
image:: https://readthedocs.org/projects/django-analog/badge/?version=latest
:target: http://django-analog.readthedocs.org/en/latest/?badge=latest