Skip to main content

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'
```

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-time-logger-0.0.5.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file django-time-logger-0.0.5.tar.gz.

File metadata

File hashes

Hashes for django-time-logger-0.0.5.tar.gz
Algorithm Hash digest
SHA256 58e646cd8caf399151cfa0428b06eb3dcfbed9d4e1d4d3f8bc0432ddf2de8419
MD5 2c93fa41c929457d0abbf44206a449b2
BLAKE2b-256 a3f1bafae7da0f861e7b61a693e2433ea7c51ff21332e87a8b75d696b5f21dc1

See more details on using hashes here.

Provenance

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