Skip to main content

Django middleware for custom logging

Project description

django-custom-logging

Django middleware for custom logging

Installation

  1. Install the package
    python -m pip install django-custom-logging
    
  2. Add middleware to MIDDLEWARE in setting file
    MIDDLEWARE = (
        # other middlewares ...
        "django-custom-logging.middleware.request_info_middleware",
    )
    
  3. Finally, add custom_logging.filters.UserIdFilter to LOGGING in setting file and update formatter

(TBD)

Examples

(TBD)

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-custom-logging-0.0.1b3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

django_custom_logging-0.0.1b3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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