Skip to main content

A simple Django app to register logs in admin backoffice.

Project description

Admin watchdog

https://travis-ci.org/makinacorpus/django-admin-watchdog.png https://coveralls.io/repos/makinacorpus/django-admin-watchdog/badge.png?branch=master

Admin watchdog is a simple Django app to register and view logs in the django admin backoffice.

Tested with Django 2.0 through 3.0.

Quick start

  1. Add “admin_watchdog” to your INSTALLED_APPS settings.

  2. Run python manage.py migrate to create the admin watchdog model.

  3. Edit your LOGGING settings to use the admin watchdog handler. For example, to replace the default mail handler:

    LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'handlers': {
            'admin_watchdog': {
                'level': 'ERROR',
                'class': 'admin_watchdog.handlers.AdminWatchdogHandler',
            }
        },
        'loggers': {
            'django.request': {
                'handlers': ['admin_watchdog'],
                'level': 'ERROR',
                'propagate': False,
            }
        }
    }
    
  4. Your error logs will now be registered. Visit your admin backoffice to see the log entries.

  5. You can run the tests by doing make test.

Screenshots

doc/admin_watchdog_home.png doc/admin_watchdog_list.png doc/admin_watchdog_view.png

AUTHORS

makinacom

LICENSE

  • GPLv3+

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-admin-watchdog, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size django_admin_watchdog-1.0.3-py3-none-any.whl (23.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-admin-watchdog-1.0.3.tar.gz (201.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