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
- PyPI
pip install django-request-hook
- Add in MIDDLEWARE
MIDDLEWARE = [
...,
'django_request_hook.middleware.LogTracker'
]
- Settings
REQUEST_HOOK_EXCLUDES = []
REQUEST_HOOK_LOG_URL = 'https://xxx/api/log'
REQUEST_HOOK_LOG_TOKEN = 'mytoken'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8922844bbe41b84139bdc0b5bd983b45b6696145866d4a777de4f89feca126b9
|
|
| MD5 |
50bc019b63cd5dd8082c7f01fee90c0e
|
|
| BLAKE2b-256 |
b8762d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047
|
File details
Details for the file django_request_hook-0.0.3-py3-none-any.whl.
File metadata
- Download URL: django_request_hook-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02bf252ffe0433be635cef9292648e2e5c88a7fdc73dc6ad0051f44be6dd2b42
|
|
| MD5 |
ae2a22a779c7c2360981dcc05e7291d7
|
|
| BLAKE2b-256 |
9edd349364790d462914c0b4373ae5d297ee6906e9a852e097745be5db6b6cba
|