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.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 997f59875076d3646e19ca268e0895161d4ceda1711b7501677bcf8c727371c8 |
|
MD5 | 1d83e4c8d966f0971295f5a4c0c6a139 |
|
BLAKE2b-256 | a3adc79ddd86c923e5c1b27c84648e703c489583f0988fb0933dd856ca271806 |
Close
Hashes for django_zupit_logging-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 941f59aca2aab060a6c8672e82ea6df9b63b9432438b0cdd602c49e84d025f97 |
|
MD5 | ad644223cf499c64c5f49ae54f8094cc |
|
BLAKE2b-256 | c31e1483267a314e2ef6d2794f811a21321b6e7198e434645aa193a2409fdb7f |