Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bruce_django_requests_logger-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bruce_django_requests_logger-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file bruce_django_requests_logger-0.1.0.tar.gz.

File metadata

File hashes

Hashes for bruce_django_requests_logger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb1559b5a7efd728f6c9e639b204af56a87a0820394596ecc70fb9b2be4c6d54
MD5 e81a8737ce7d7ab7242dc489c502ffa6
BLAKE2b-256 b4d96d1fe5554fecde74740c234b1a57a5c931dc6534930bf14a24cdd805a8ff

See more details on using hashes here.

File details

Details for the file bruce_django_requests_logger-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bruce_django_requests_logger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a11b831002eac3c85126c8c3298dbf4d32c4a32511582f918d72038f69d506da
MD5 0fed4315dcd870f7fbb274143fbf2b72
BLAKE2b-256 871628cb2ba8ae33ba0640238d383eb9a365618c7c115ee051f4ef6f742bfa52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page