slow request log for django
django-slow-log is an additional logging layer that keeps a log similar to an apache or nginx request log, but adds additional higher level information about the state of the process and the resources used by the server during the generation of the response.
To use, add to your MIDDLEWARE_CLASSES in settings.py:
MIDDLEWARE_CLASSES = ( 'django_slow_log.middleware.SlowLogMiddleware', ... )
- do not keep a log in a file, only print; this can be useful for use on your devbox (via runserver)
- path of the log file (default: /var/log/django-slow.log)