Useful and simple real-time logging middleware for django projects.
Project description
django-real-time logging
Useful and simple real-time logging middleware for django projects.
https://github.com/Speccy-Rom/django-real-time-logging
How to use it
To install run:
pip install django-rt-logging
Add the following lines at the end of settings.py file:
INSTALLED_APPS = INSTALLED_APPS + ('django-rt-logging',)
MIDDLEWARE = ( MIDDLEWARE + ('django_watch.middleware.LoggingMiddleware',) )
Open your development console and see the result:
""" START /my_project/posts/views.py => news_list: Line number 15 """
kwargs: {'posts_id': '3'}
request.GET: <QueryDict: {'published_at': ['today']}>
""" END /my_project/posts/views.py => news_list: Line number 15 """
sql queries time: 0.13
total time: 4.23
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
File details
Details for the file django-rt-logging-0.22.tar.gz.
File metadata
- Download URL: django-rt-logging-0.22.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd6c27b8860f9c7c67aedcbcc764531244581ff02b478659deeb58334bbd1b33
|
|
| MD5 |
4d820395e9e8dd72bf3561134d9fe59b
|
|
| BLAKE2b-256 |
47d7fe7b063eb34f3441604b321e182137ed7cb7eb4f358a0daa6564d31c7d1e
|