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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0db88eeb1bd90fa3f68e18c142db423b32ed6c6e2465f4df5173fde6344fd9 |
|
MD5 | a8de5f19610ae30a54899d24558ec65e |
|
BLAKE2b-256 | 49ac2e089a0359336fc1fcee9435675718e84cce1eaa6c7105c9be729980f11e |
Close
Hashes for django_zupit_logging-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd5c748839040c2c0fb562895096a32e6adfeb3d637cd77ba0115afc4d4c00cb |
|
MD5 | 2cbdcc9ebc252007cf31d68110eab2f1 |
|
BLAKE2b-256 | c7147232e89cb079d7e6d47ffe388ace59568be35fefbe4f53a6a5a2005369f9 |