Skip to main content

A logger to be used internally

Project description

Django Audit Logger



pip install django-audit-logger


  • Django
  • Boto3
  • Celery
  • Redis

Works with both python 2.7 and all versions of python that support Django 1.11 (3.6, 3.5, 3.4)


Add the following settings to your file.

LOG_INTERVAL = '' (default = 5)  # Interval value represents minutes

Add auditlogger to your INSTALLED_APPS.

Log models

The User model is logged by default, you can select additional models by using the @auditlogger_update_delete decorator.

class ModelToLog(models.Model):
    name = models.CharField(max_length=100)

Custom log events

You can also link other signals used in your app to the logger like so:

from auditlogger.signals import send_log
from django.dispatch import receiver, Signal
from myapp.models import Organisation

organisation_login_signal = Signal(providing_args=['date', 'instance'])

@receiver(organisation_login_signal, sender=Organisation)
def organisation_login(**kwargs):
    """detect organisation logins"""
    send_log('ORGANISATION_LOGIN', **kwargs)

Exclude models



The app comes with included tests that you can run with the following command.

python test auditlogger

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-audit-logger, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_audit_logger-1.0.2-py3-none-any.whl (10.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-audit-logger-1.0.2.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page