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.
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2bfaa04b226f9fe17cb7bd077761d30cfad472dfd1912417f65efeba833bef8 |
|
MD5 | bc632cf85421d2899f881b5357a28abd |
|
BLAKE2b-256 | cef97f16c63b2f77af13896f8f57f4d355a59aed84d5a7adf61769eae588a660 |
Close
Hashes for django_zupit_logging-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b7d6d193ff9c4dfa6e20fd7c593dc81107c5657b3850eb2b0cce1367e350dc |
|
MD5 | edce39be717b4ad1fef6bbcfb3de493d |
|
BLAKE2b-256 | 364605e80186030030905ca8e3e2403f6934da95cbd38a4542f5cb96aa74ba1d |