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.5.tar.gz (201.2 kB view details)

Uploaded Source

Built Distribution

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

django_admin_watchdog-1.0.5-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_watchdog-1.0.5.tar.gz.

File metadata

  • Download URL: django_admin_watchdog-1.0.5.tar.gz
  • Upload date:
  • Size: 201.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for django_admin_watchdog-1.0.5.tar.gz
Algorithm Hash digest
SHA256 06c109d975c87e30a12a80974a722a07722c4cf41a612966e6f810e1a466ebdd
MD5 1b5a7c3f85d842516cd1990f37c60f9d
BLAKE2b-256 a1859663342acf3d61cc4a51d6b4ad2151b306241b7db2f70f4634f74a6a7d72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_admin_watchdog-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 91d9fdf950213546811e2ae8e1b29aa8f08865b625c6af3651e0e4708c493dae
MD5 f2d4044616443c5a707835c87824604d
BLAKE2b-256 bf2bc75af754ad5bb4b0b36cf3d53250ac6e75fd20f14a934e100341bb09bbc9

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