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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39775fa72961b26f69b2a27e28e4766df0507c7382ef883ddc88386e612a0a05 |
|
MD5 | 81a4bea022372f5c3ee2a644feb5b78a |
|
BLAKE2b-256 | 9b6e306a5bc6f3182f1d18348211bbea90e218c00660d0e5d018d22d66685908 |
Close
Hashes for django_zupit_logging-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a39ba109cd93674fb8e13bd426d88b28b17efdde1585613bc9e1d6332a9fcb6 |
|
MD5 | 30dd2bbce28d60058ebd4fd097e2ecb5 |
|
BLAKE2b-256 | 23d6ba896f1e1aa1370d56047c6afb7b40615bd61db2197090ff96a3ba860323 |