Admin logs for django like in Google Application Engine
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
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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size admin_logs-0.2.14.tar.gz (9.7 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size admin_logs-0.2.14-py2.py3-none-any.whl (17.2 kB)||File type Wheel||Python version 3.6||Upload date||Hashes View|
Hashes for admin_logs-0.2.14-py2.py3-none-any.whl