A Django middleware for comprehensive HTTP request logging
Project description
Bruce Django Requests Logger
一个功能完整的 Django 中间件,用于详细记录 HTTP 请求信息。
功能特性
- 📝 记录完整的请求信息(方法、路径、状态码、持续时间等)
- 🕒 高精度时间测量和格式化显示
- 🌐 客户端 IP 地址检测(支持代理)
- 🔍 可配置的请求过滤(排除静态文件等)
- 🛠 管理命令查看日志统计
- 📊 JSON 格式的结构化日志输出
- ⚡ 轻量级,对性能影响极小
安装
使用 pip 安装
pip install bruce-django-requests-logger
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 bruce_django_requests_logger-0.1.0.tar.gz.
File metadata
- Download URL: bruce_django_requests_logger-0.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb1559b5a7efd728f6c9e639b204af56a87a0820394596ecc70fb9b2be4c6d54
|
|
| MD5 |
e81a8737ce7d7ab7242dc489c502ffa6
|
|
| BLAKE2b-256 |
b4d96d1fe5554fecde74740c234b1a57a5c931dc6534930bf14a24cdd805a8ff
|
File details
Details for the file bruce_django_requests_logger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bruce_django_requests_logger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a11b831002eac3c85126c8c3298dbf4d32c4a32511582f918d72038f69d506da
|
|
| MD5 |
0fed4315dcd870f7fbb274143fbf2b72
|
|
| BLAKE2b-256 |
871628cb2ba8ae33ba0640238d383eb9a365618c7c115ee051f4ef6f742bfa52
|