Admin logs for django like in Google Application Engine
Project description
About
This small module for django allows you to store requests in your database(now supports only database) and then look at them in django admin. This module was inspired by logs in Google Application Engine
Configure
Include this lines to your settings.py:
INSTALLED_APPS += ('admin_logs', ) MIDDLEWARE_CLASSES = ('admin_logs.middleware.LogRequestMiddleware', ) + MIDDLEWARE_CLASSES # place middleware as early as possible ADMIN_LOGS_BACKEND = 'admin_logs.backends.database.DatabaseBackend' # now supports only database from admin_logs import setup_level setup_level('INFO') # set minumum log level that will be written to logs from admin_logs.decorators import log # use full for celery tasks @log(name='test') def task_name(): logging.warning('logging in task')
And this warning will be written to logs and you can check it later.
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
admin_logs-0.2.14.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for admin_logs-0.2.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294466b4cd2e2316f3445e604c86e0538cc79d063d3c2adaf537ff3953aaf1d2 |
|
MD5 | 016fc5c9de7f8af4245b7538c1dd7fdb |
|
BLAKE2b-256 | a3288b854e0e0bc632edd014e11f5be3ff41004b28237a27658105c71cb74376 |