{"id":16843368,"url":"https://github.com/barttc/django-eventlog","last_synced_at":"2025-10-05T01:24:57.799Z","repository":{"id":50214952,"uuid":"117152999","full_name":"bartTC/django-eventlog","owner":"bartTC","description":"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.","archived":false,"fork":false,"pushed_at":"2024-11-19T08:06:54.000Z","size":1601,"stargazers_count":33,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T14:12:22.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://barttc.github.io/django-eventlog/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartTC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-11T21:00:32.000Z","updated_at":"2025-02-15T05:20:23.000Z","dependencies_parsed_at":"2024-03-05T19:25:00.542Z","dependency_job_id":"01ef2e0d-bcb3-4ccf-9316-3152b4e28edc","html_url":"https://github.com/bartTC/django-eventlog","commit_stats":{"total_commits":134,"total_committers":5,"mean_commits":26.8,"dds":0.04477611940298509,"last_synced_commit":"0c4993b626d9758c3d4f85fe1b735f5bd58651ea"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-eventlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-eventlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-eventlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartTC%2Fdjango-eventlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartTC","download_url":"https://codeload.github.com/bartTC/django-eventlog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685628,"owners_count":20979085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:50:40.630Z","updated_at":"2025-10-05T01:24:57.779Z","avatar_url":"https://github.com/bartTC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/pypi/v/django-eventlog.svg)](https://pypi.org/project/django-eventlog/)\n[![](https://github.com/bartTC/django-eventlog/actions/workflows/push.yml/badge.svg)](https://github.com/bartTC/django-eventlog/actions/workflows/push.yml)\n[![](https://codecov.io/github/bartTC/django-eventlog/graph/badge.svg?token=YLXXbCawUQ)](https://codecov.io/github/bartTC/django-eventlog)\n\n---\n\n📖 **Full documentation: https://barttc.github.io/django-eventlog/**\n\n_Compatibility Matrix:_\n\n| Py/Dj     | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 |\n|-----------| --- | ---- | ---- | ---- |------|\n| 4.2 (LTS) | ✓   | ✓    | ✓    | ✓    | ✓    |\n| 5.0       | —   | ✓    | ✓    | ✓    | ✓    |\n| 5.1       | —   | ✓    | ✓    | ✓    | ✓    |\n| 5.2       | —   | ✓    | ✓    | ✓    | ✓    |\n\n# django-eventlog\n\n\u003cimg src=\"https://github.com/bartTC/django-eventlog/raw/main/docs/_static/logo.webp\" alt=\"djang-eventlog Logo\" width=\"300\"/\u003e\n\ndjango-eventlog is a very simple event logger you can use to track certain actions in\nyour code. Events are stored in a Django model and can be viewed in the Django Admin.\n\nUsage Example:\n\n```python\nfrom eventlog import EventGroup\n\ne = EventGroup()                       # Start a new Event Group\ne.info('About to send 1000 mails.',    # Trigger an Event\n       initiator='Mailer Daemon')\ntry:\n    # ... sending 1000 mails\n    e.info('All emails sent!',         # Trigger an Event in the same group,\n           initiator='Mailer Daemon')  # so they are combined in the admin.\nexcept Exception:\n    e.error('There was an error sending the emails.',\n            initiator='Mailer Daemon')\n```\n\nYou can reuse an event group by specifying a group name and attach optional data. Data\nmust be JSON serializable.\n\n```python\nfrom eventlog import EventGroup\n\ndef purchase():\n    e = EventGroup(group_id=f\"Order {self.order.pk}\")\n    e.info(\"Sent order to Shopify\", data={\"items\": [1, 2, 3]})\n\ndef subscribe_newsletter():\n    e = EventGroup(group_id=f\"Order {self.order.pk}\")\n    e.info(\"User subscribed to newsletter on checkout\", data={\"email\": \"user@example.com\"})\n```\n\nEvents can be grouped in a \"Event Group\" and when hovering over one item in the admin,\nall events of the same group are highlighted:\n\n![](https://github.com/bartTC/django-eventlog/raw/main/docs/_static/change_list.png)\n\nThe details view of an event will list all other events of this group so you\ncan track the progress:\n\n![](https://github.com/bartTC/django-eventlog/raw/main/docs/_static/change_form.png)\n\nWhile looking similar, it's not intended to be a replacement for your regular Python\n`logging` facility, rather an addition to it.\n\ndjango-eventlog stores it's data in a regular database model, so each log entry will\ntrigger a SQL Insert. Therefore you should be careful using it in high performance\nand/or high volume environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarttc%2Fdjango-eventlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarttc%2Fdjango-eventlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarttc%2Fdjango-eventlog/lists"}