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.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b6ba26b836e25f25d08793577d3a63097af5e7a286120dffe57847449b6b7c |
|
MD5 | 9195808a7d42e7cd42ac4f8cc2f21e4f |
|
BLAKE2b-256 | 72b89861ca9d7562bbb2eb6f65be227c7736ed1dca67b6136329e11fc0380a9c |
Close
Hashes for django_zupit_logging-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b23b7a970f4ed34418035f45e615547fb3f71e4c94d92e6cd6409f6231babd0 |
|
MD5 | 18f62109f3da7f3e59c5bfc6e4505172 |
|
BLAKE2b-256 | 393106b68c416f040ca2b7fe0cdbf05077a70e547083eee541f402cffec8f4c0 |