Skip to main content

Django middlewares to track request logs

Project description

Django Request Hook

Django middlewares to track request/response logs. Catch the logs and send it to anywhere you want through HTTP.

Installation

You can install the Django Request Hook from PyPI

How to use

  1. PyPI
pip install django-request-hook
  1. Add in MIDDLEWARE
MIDDLEWARE = [
    ...,
    'django_request_hook.middleware.LogTracker'
]
  1. Settings
REQUEST_HOOK_EXCLUDES = []

REQUEST_HOOK_LOG_URL = 'https://xxx/api/log'

REQUEST_HOOK_LOG_TOKEN = 'mytoken'

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-request-hook-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

django_request_hook-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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