djangodjango-middlewaredjango-logging

Django Logger vs Logging Middleware


I want to log every request sent to Django.

There are some posts online about logging middleware. The Django documentation talks about logger configuration and it seems that I can set it up to log everything without writing middleware.


Solution

  • if want to log every request, in that case, you should use Logging in middleware https://djangosnippets.org/snippets/428/