Metadata-Version: 2.4
Name: django-admin-watchdog
Version: 1.0.5
Summary: A simple Django app to register logs in admin backoffice.
Home-page: https://github.com/makinacorpus/django-admin-watchdog
Author: Yann Fouillat
Author-email: yann.fouillat@makina-corpus.com
License: GPLv3+
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: summary

==============
Admin watchdog
==============

.. image:: https://travis-ci.org/makinacorpus/django-admin-watchdog.png
    :target: https://travis-ci.org/makinacorpus/django-admin-watchdog

.. image:: https://coveralls.io/repos/makinacorpus/django-admin-watchdog/badge.png?branch=master
    :target: https://coveralls.io/r/makinacorpus/django-admin-watchdog?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
===========

.. image:: doc/admin_watchdog_home.png

.. image:: doc/admin_watchdog_list.png

.. image:: doc/admin_watchdog_view.png

AUTHORS
=======

* Yann FOUILLAT (alias Gagaro) <yann.fouillat@makina-corpus.com>

|makinacom|_

.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
.. _makinacom:  http://www.makina-corpus.com


=======
LICENSE
=======

* GPLv3+
