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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b468fd8826d032f3d36667022fb753a2d44cfdaccf1072c9765bd411941db9 |
|
MD5 | e04a5c24be68386ddaefb6e6875fcd52 |
|
BLAKE2b-256 | bc2ea37eefbd9b360e72fb5c3dbf58d6fa03dbf82ebd538be1bdb2e04d2549dc |
Close
Hashes for django_request_hook-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0580ce6c875e59fb7bdd1e3aed71ec5dfadfb56cfc49d5e1c5d3721e796ea3e5 |
|
MD5 | f875cc698498a75104a2a9d5ae4de08c |
|
BLAKE2b-256 | 16f586efdee4f48ec884de3e20893beea14918580fc666ba7884df2b5b65b68b |