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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-request-hook-0.0.3.tar.gz.

File metadata

  • Download URL: django-request-hook-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for django-request-hook-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8922844bbe41b84139bdc0b5bd983b45b6696145866d4a777de4f89feca126b9
MD5 50bc019b63cd5dd8082c7f01fee90c0e
BLAKE2b-256 b8762d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047

See more details on using hashes here.

File details

Details for the file django_request_hook-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_request_hook-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 02bf252ffe0433be635cef9292648e2e5c88a7fdc73dc6ad0051f44be6dd2b42
MD5 ae2a22a779c7c2360981dcc05e7291d7
BLAKE2b-256 9edd349364790d462914c0b4373ae5d297ee6906e9a852e097745be5db6b6cba

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