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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3667ade9af6c74e297c0fff78e9308a6be144bb0fc4a60bc24275ff743e0a9cc |
|
MD5 | 40c7da303b85e62ff8f407bc77277c95 |
|
BLAKE2b-256 | 27b86436615b4f1054b4283e4b40527097e85b3020a79b3fc34e1d8e1095a8ac |
Close
Hashes for django_zupit_logging-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a63a05384e9ac7c14fa78b1ee6c51d29e05aea07fa8e6c05d05ec2cc229bfa4 |
|
MD5 | 088c76ee5f292db0b15287b0cc2abeae |
|
BLAKE2b-256 | f19898dee26287ac082c9a0c14b87826fe1c54bcdd8806605d19ead7e2ec6a32 |