A Django Middleware for logging requests and responses accordingly to Zupit Standards
Project description
A Django Middleware for logging requests and responses accordingly to Zupit Standards.
Installation
Install using pip:
pip install django_zupit_logging
Configuration
Add django_zupit_logging to your INSTALLED_APPS setting:
INSTALLED_APPS = [ ... 'django_zupit_logging', ]
Add django_zupit_logging.middleware.ZupitLoggingMiddleware to your MIDDLEWARE setting:
MIDDLEWARE = [ ... 'django_zupit_logging.middleware.ZupitLoggingMiddleware', ]
Add ZUPIT_LOGGING to your settings.py file:
ZUPIT_LOGGING = { "APP_INSIGHTS_CONNECTION_STRING": env("APP_INSIGHTS_CONNECTION_STRING"), }
Use enable_zupit_logger(LOGGING) to your settings.py file:
from django_zupit_logging.settings import enable_zupit_logger if env("APP_INSIGHTS_CONNECTION_STRING"): enable_zupit_logger(LOGGING)
Usage
The middleware will log requests and responses accordingly to Zupit Standards. Test
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-zupit-logging-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f639c10d475a8ce1e70894e0f18fad79b5c426559bb45eb72464154aee7bef4b |
|
MD5 | 1f528b53b061a0323ac9ba78d46a6819 |
|
BLAKE2b-256 | de306667e287e74092a7fc60575a25ca5d73dc6800d11c3ef997a43b6479aa0a |
Close
Hashes for django_zupit_logging-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570c33364914d51d0aeb113a7428dedaea5b71018fecbf58863e25a8c29535ce |
|
MD5 | 1228e5c4a676903468c526fd0a598a05 |
|
BLAKE2b-256 | dd1fb353f7336e299da62ce21f5948c38f013639f92c085c178d42d3f6f98e79 |