Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_zupit_logging-0.2.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

django_zupit_logging-0.2.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file django_zupit_logging-0.2.4.tar.gz.

File metadata

  • Download URL: django_zupit_logging-0.2.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for django_zupit_logging-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e2bfaa04b226f9fe17cb7bd077761d30cfad472dfd1912417f65efeba833bef8
MD5 bc632cf85421d2899f881b5357a28abd
BLAKE2b-256 cef97f16c63b2f77af13896f8f57f4d355a59aed84d5a7adf61769eae588a660

See more details on using hashes here.

File details

Details for the file django_zupit_logging-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_zupit_logging-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37b7d6d193ff9c4dfa6e20fd7c593dc81107c5657b3850eb2b0cce1367e350dc
MD5 edce39be717b4ad1fef6bbcfb3de493d
BLAKE2b-256 364605e80186030030905ca8e3e2403f6934da95cbd38a4542f5cb96aa74ba1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page