Skip to main content

slow request log for django

Project description

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.

installing/usage

To use, add to your MIDDLEWARE_CLASSES in settings.py:

MIDDLEWARE_CLASSES = (
    'django_slow_log.middleware.SlowLogMiddleware',
    ...
)

settings

DJANGO_SLOW_LOG_PRINT_ONLY

do not keep a log in a file, only print; this can be useful for use on your devbox (via runserver)

DJANGO_SLOW_LOG_LOCATION

path of the log file (default: /var/log/django-slow.log)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-slow-log-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-slow-log-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-slow-log-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e00c9675a0af73f290aff924c59ff5627e42d41d6bc5985341c96931d92a6e5e
MD5 572705aae3975fb6112bdf8021c6d9bb
BLAKE2b-256 38272b13670ac4707af8a17a542d4618737baed13ba39fd803d006b9d1a9d127

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page