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.2 through 4.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.

Source Distribution

django-admin-watchdog-1.0.4.tar.gz (201.4 kB view details)

Uploaded Source

Built Distribution

django_admin_watchdog-1.0.4-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file django-admin-watchdog-1.0.4.tar.gz.

File metadata

  • Download URL: django-admin-watchdog-1.0.4.tar.gz
  • Upload date:
  • Size: 201.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for django-admin-watchdog-1.0.4.tar.gz
Algorithm Hash digest
SHA256 400d1ef3d94f927cdad50ed6f3df216c0b36d71bbbc525a4dcb31d1022460d3b
MD5 4818d6d8b0dfc07b7afa8d9da7257749
BLAKE2b-256 d5d2d79546e6c481500f102c550869130c3e04d9c839f20069721bede28416b8

See more details on using hashes here.

File details

Details for the file django_admin_watchdog-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: django_admin_watchdog-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for django_admin_watchdog-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f2fdd80a46e713ac84ea1a582146a1eae6b9c04420446f88e75b0f86bd34223
MD5 6a874e2490a870eae6af73cac6db5d3c
BLAKE2b-256 d93d0cace37c1c865e19bcd487008e4c0834d89c7d44c63e888722f1f9fd60ef

See more details on using hashes here.

Supported by

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