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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b0c35c4acb740bb231f991c6c71a0cc0ee4f02165ab07fe85caed39bd5175a |
|
MD5 | a171a849941c864acea8964c7ca10b67 |
|
BLAKE2b-256 | c5a57632f15616cb4eb9957af308bc06110edb2617150a281e56ff842aaf7dd0 |
Close
Hashes for django_zupit_logging-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0675ce4f6ca5c1a8983a787b76e4dbff1aff0dafde654c1933dd5f686c1e0840 |
|
MD5 | 8c683c22fae2d64f2f341aabaedef0f8 |
|
BLAKE2b-256 | 8d244e1dfb4ca7eef02d40ffe0a0eb3c5f21fa89ee3eff67d7287386eed135d6 |