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.TimeIt() as timeit:
        res = requests.post(url, json=payload)
    weblogtools.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.

Files for django-weblogtools, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_weblogtools-0.1-py3-none-any.whl (9.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-weblogtools-0.1.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page