Skip to main content

A Django package for logging actions with user and object details

Project description

Django Audit Log

A simple Django package for logging user actions on objects within the application.

Installation

Install via pip:

pip install audit-trail-logger

  1. Add auditlog to INSTALLED_APPS in your Django settings.
  2. Use the audit_log decorator on your views or model methods. from auditlog.decorators import audit_log @audit_log(action_type='create', object_type='Product') def create_product(request): ## Your logic for creating the product pass

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audit-trail-logger-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audit_trail_logger-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file audit-trail-logger-0.1.1.tar.gz.

File metadata

  • Download URL: audit-trail-logger-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.16

File hashes

Hashes for audit-trail-logger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d60b9d14f1532963051d1313be857de0936f36871140e3e5df370159c99ea2dd
MD5 fb83e8342e1e8f79135e3926e715c117
BLAKE2b-256 a30b54c56639046f0b4a4984289095ebfc65e34403c00e20b6b05873db90b92b

See more details on using hashes here.

File details

Details for the file audit_trail_logger-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for audit_trail_logger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a4391d5f05c7f3ee34e1292446ce44c4b2e7cd5d503ed21686894b0e5f343af
MD5 917bea775436760e5a91d37a31727d13
BLAKE2b-256 0f86e3310ff265499a4baebb661d7db9790b76a2a9cd05e973594f2fdb8eb3c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page