Skip to main content

Provide an endpoint to receive logs and push them to a configurable django logger

Project description

> Provide an endpoint to receive logs and push them to a configurable django logger



  1. Install the package:

    pip install django-logging-endpoint
  2. Install the application by adding it to the INSTALLED_APPS setting:

    INSTALLED_APPS += ('logging_endpoint',)
  3. Set the logger name, if you want to send the messages to a specific one:

  4. Add the url to your

    from django.conf.urls import include
    urlpatterns += url(r'logs^', include('logging_endpoint.urls'))



The root endpoint of django-logging-endpoint receives a json message with the logs to be sent to the configured logger:

    'message':   'my log message',
    'logger':    'user interaction',
    'loglevel':  'error',
    'timestamp': '2020-01-01T12:00Z'

By default, a list of logs can be received and will be expanded to the Django logger. See the documentation’s settings chapter for more information on that.



This project uses a Makefile for various tasks. Some of the available tasks are listed below.

  • make clean - Clean build artifacts out of your project
  • make test - Run Tests
  • make plain-test - Run Tests without rebuilding the project
  • make sdist - Build a Python source distribution
  • make docs - Build the Sphinx documentation
  • make lint - Get a codestyle report about your code
  • make plain-lint - Get a codestyle report without rebuilding the project
  • make - Equivalent to make test lint docs sdist

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-logging-endpoint, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-logging-endpoint-1.0.1.tar.gz (197.2 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page