django-rich-logging

A prettier way to see Django requests while developing.

PyPI PyPI - Downloads GitHub Sponsors

? Complete documentation: https://django-rich-logging.readthedocs.io

? Package located at https://pypi.org/project/django-rich-logging/

⭐ Features

  • live-updating table of all requests while developing

demo of django-rich-logging

Installation

poetry add django-rich-logging OR pip install django-rich-logging

Configuration

# settings.py

# other settings here

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "handlers": {
        "django_rich_logging": {
            "class": "django_rich_logging.logging.DjangoRequestHandler",
            "level": "INFO",
        },
    },
    "loggers": {
        "django.server": {"handlers": ["django_rich_logging"], "level": "INFO"},
        "django.request": {"level": "CRITICAL"},
    },
}

# other settings here

Read all of the documentation at https://django-rich-logging.readthedocs.io.

GitHub

View Github