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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944a66395cdf6db7239dd047b0f73458b50ee9769d2cf08e8c6b24cea2446afa |
|
MD5 | a44742b6b768eec541aeb0f383cea4fc |
|
BLAKE2b-256 | e785728e03299605b816f9148b5f6032066cb39a8643c040b6ed7379fcc97199 |
Close
Hashes for django_zupit_logging-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3baa1e2f4bdabef7331978d0112e50cf979dcf37f93deb8717e76bb3c5a9114 |
|
MD5 | ac92c455b49803a7697f526e9476b01d |
|
BLAKE2b-256 | 9dbaaf880b907343e073ba99fae8f11fae232989c908e8d98f28a02424ad7e13 |