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
Close
Hashes for django-request-hook-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8922844bbe41b84139bdc0b5bd983b45b6696145866d4a777de4f89feca126b9 |
|
MD5 | 50bc019b63cd5dd8082c7f01fee90c0e |
|
BLAKE2b-256 | b8762d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047 |
Close
Hashes for django_request_hook-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02bf252ffe0433be635cef9292648e2e5c88a7fdc73dc6ad0051f44be6dd2b42 |
|
MD5 | ae2a22a779c7c2360981dcc05e7291d7 |
|
BLAKE2b-256 | 9edd349364790d462914c0b4373ae5d297ee6906e9a852e097745be5db6b6cba |