django-eventlog stores event messages in a Django model.
Project description
.. image:: https://travis-ci.org/bartTC/django-eventlog.svg?branch=master
:target: https://travis-ci.org/bartTC/django-eventlog
.. image:: https://codecov.io/github/bartTC/django-eventlog/coverage.svg?branch=master
:target: https://codecov.io/github/bartTC/django-eventlog?branch=master
Full documentation: https://django-eventlog.readthedocs.io/en/latest/
===============
django-eventlog
===============
django-eventlog is a very simple event logger you can use to track certain
actions in your code. Events are stored in a Django model and can be viewed
in the Django Admin.
Usage Example::
from eventlog import EventGroup
e = EventGroup() # Start a new Event Group
e.info('About to send 1000 mails.', # Trigger an Event
initiator='Mailer Daemon')
try:
# ... sending 1000 mails
e.info('All emails sent!', # Trigger an Event in the same group,
initiator='Mailer Daemon') # so they are combined in the admin.
except Exception:
e.error('There was an error sending the emails.',
initiator='Mailer Daemon')
Events can be grouped in a "Event Group" and when hovering over one item
in the admin, all events of the same group are highlighted:
.. image:: https://github.com/bartTC/django-eventlog/raw/master/docs/_static/change_list.png
:scale: 100 %
The details view of an event will list all other events of this group so you
can track the progress:
.. image:: https://github.com/bartTC/django-eventlog/raw/master/docs/_static/change_form.png
:scale: 100 %
.. note::
While looking similar, it's not intended to be a replacement for your
regular Python ``logging`` facility, rather an addition to it.
django-eventlog stores it's data in a regular database model, so each log entry
will trigger a SQL Insert. Therefore you should be careful using it in high
performance and/or high volume environments.
=========
Changelog
=========
1.0 (2018-02-13)
================
- Production ready 1.0 release.
- The details Admin view now displays all events of the group with an
annotated delay, so you can see the progress of the group.
0.9 (2018-02-13)
================
- Initial release.
- Django 1.8 to 2.0 compatibility.
- Python 2.7 to 3.6 compatibility.
:target: https://travis-ci.org/bartTC/django-eventlog
.. image:: https://codecov.io/github/bartTC/django-eventlog/coverage.svg?branch=master
:target: https://codecov.io/github/bartTC/django-eventlog?branch=master
Full documentation: https://django-eventlog.readthedocs.io/en/latest/
===============
django-eventlog
===============
django-eventlog is a very simple event logger you can use to track certain
actions in your code. Events are stored in a Django model and can be viewed
in the Django Admin.
Usage Example::
from eventlog import EventGroup
e = EventGroup() # Start a new Event Group
e.info('About to send 1000 mails.', # Trigger an Event
initiator='Mailer Daemon')
try:
# ... sending 1000 mails
e.info('All emails sent!', # Trigger an Event in the same group,
initiator='Mailer Daemon') # so they are combined in the admin.
except Exception:
e.error('There was an error sending the emails.',
initiator='Mailer Daemon')
Events can be grouped in a "Event Group" and when hovering over one item
in the admin, all events of the same group are highlighted:
.. image:: https://github.com/bartTC/django-eventlog/raw/master/docs/_static/change_list.png
:scale: 100 %
The details view of an event will list all other events of this group so you
can track the progress:
.. image:: https://github.com/bartTC/django-eventlog/raw/master/docs/_static/change_form.png
:scale: 100 %
.. note::
While looking similar, it's not intended to be a replacement for your
regular Python ``logging`` facility, rather an addition to it.
django-eventlog stores it's data in a regular database model, so each log entry
will trigger a SQL Insert. Therefore you should be careful using it in high
performance and/or high volume environments.
=========
Changelog
=========
1.0 (2018-02-13)
================
- Production ready 1.0 release.
- The details Admin view now displays all events of the group with an
annotated delay, so you can see the progress of the group.
0.9 (2018-02-13)
================
- Initial release.
- Django 1.8 to 2.0 compatibility.
- Python 2.7 to 3.6 compatibility.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-eventlog-1.0.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file django-eventlog-1.0.tar.gz
.
File metadata
- Download URL: django-eventlog-1.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a8a64b577d35e22deb55a0b66cee83fc254f7dd75cb9542acdcc4f35b6babf2 |
|
MD5 | 4d4d7cf1636c38e07817b0423bd96ccd |
|
BLAKE2b-256 | 310fb7aff2ece6d78433d8df0c789cd82c3dd43c8ff9d045bdd8caec943562f2 |
File details
Details for the file django_eventlog-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_eventlog-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e45dba3ed3b36c3d094d71b302eecec83919acdbbb8b7fd5900c418f11f4921 |
|
MD5 | b1729e1d3e070a6ae4d292811646e460 |
|
BLAKE2b-256 | b9123d03b75b0577d82da9e0f000248d77890ef931216fcd7190e044a4bda787 |