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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_loggable_util-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e81c1e66c6e1bd5c4f3a1ecbfb212e7cbafd666cbf9b14ec9ccb6e20333439d |
|
MD5 | 63a32931bd1bebf06e96b5befb536cca |
|
BLAKE2b-256 | 8667c2d6c0458792c66f9e501fda1d842aa9b738831cdcdd49e62d8a6efa03b0 |
Close
Hashes for django_loggable_util-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9f456e8861b3a6ce5ddf094794b22632374e6d68ac981ad50d7363998b65ffb |
|
MD5 | 5a43cd491f970aa6297b20b3c4bf163e |
|
BLAKE2b-256 | 0b7adf190a22b1c784520a8c8ae80b9fac6ab9af650e523a1294b4d75b299f93 |