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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07a065dca31003c3cbbe7efc548a7847bb677384d7edf649ffd9192ba608f662 |
|
MD5 | 33fab5fe41ae2cdc064e73b85eb15b22 |
|
BLAKE2b-256 | bc18e000971da738d800ba223b80414df0bb7246078162041bc8cedc4aa89f9b |
Close
Hashes for django_request_hook-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ea915cefa0c9ac759f06228a6644f59e006684b09c4212ecd284ef4782ac6b |
|
MD5 | 08de5ef2038fae736067bff6646b8c83 |
|
BLAKE2b-256 | 1c72d07f443d0bed320358feb7011be02aa2e23528b4b1dd4394d9a357f04a62 |