Time logger for django
Project description
# django-time-logger
Installation python package:
```
$ pip install django-time-logger
```
Add middleware into settings.py:
```
MIDDLEWARE_CLASSES = (
...
'time_logger.middleware.view_logger.ViewTimeLogger',
...
)
```
Set threshold time value in seconds into settings.py for logging view
```
LOG_VIEW_TIME = 10
```
Optional can be set mongo database for logging
```
mongoengine.connect(...)
mongoengine.register_connection('local', ...)
...
LOG_VIEW_TIME_DB_ALIAS = 'local'
```
Installation python package:
```
$ pip install django-time-logger
```
Add middleware into settings.py:
```
MIDDLEWARE_CLASSES = (
...
'time_logger.middleware.view_logger.ViewTimeLogger',
...
)
```
Set threshold time value in seconds into settings.py for logging view
```
LOG_VIEW_TIME = 10
```
Optional can be set mongo database for logging
```
mongoengine.connect(...)
mongoengine.register_connection('local', ...)
...
LOG_VIEW_TIME_DB_ALIAS = 'local'
```
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-time-logger-0.0.5.tar.gz
.
File metadata
- Download URL: django-time-logger-0.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e646cd8caf399151cfa0428b06eb3dcfbed9d4e1d4d3f8bc0432ddf2de8419 |
|
MD5 | 2c93fa41c929457d0abbf44206a449b2 |
|
BLAKE2b-256 | a3f1bafae7da0f861e7b61a693e2433ea7c51ff21332e87a8b75d696b5f21dc1 |