Skip to main content

Separate logging from class based view business code

Project description

Django loggable util

An utility to separate create logs for request and reponses while keeping business code clean for class based views.

Example usage

Import the Loggable class in your urls.py

from django-loggable-util import Loggable

Now write url configuration as this:

urlpatterns=[
...
path('someurl', Loggable(SomeCBView).as_view(),name='some-url-name'),
...
]

Todos

  • Write Tests
  • Support DRF
  • Support FBV

License

MIT

Free Software, Hell Yeah!

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_loggable_util-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

django_loggable_util-0.0.1-py3-none-any.whl (3.8 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