A prettier way to see Django requests while developing.
MIT License
📖 Complete documentation: https://django-rich-logging.readthedocs.io
📦 Package located at https://pypi.org/project/django-rich-logging/
poetry add django-rich-logging
OR pip install django-rich-logging
# 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.