Skip to main content

A simple Django app to log http request / response with external services.

Project description

Weblogtools is a simple Django app to log http request to database, in order to have a nice interface to check the input / output data with external service.

Quick start

  1. Add “weblogtools” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'weblogtools',
    ]
  2. Include the weblogtools URLconf in your project urls.py like this:

    path('weblogtools/', include('weblogtools.urls')),
  3. Run python manage.py migrate to create the weblogtools models.

  4. now you can use weblogtools like belows. more see the weblogtools package source code:

    with weblogtools.biz.TimeIt() as timeit:
        res = requests.post(url, json=payload)
    weblogtools.biz.http_log_from_response('upload_case', res, timeit.duration)

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-weblogtools-0.1.3.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

django_weblogtools-0.1.3-py3-none-any.whl (9.0 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