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 loot 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 ADMIN_LOGS_BACKEND = 'admin_logs.backends.database.DatabaseBackend' from admin_logs import setup_level setup_level('INFO')
Working
Anyway in the code you can run:
import logging logging.warning('Test')
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.1.0.zip
(12.8 kB
view hashes)
Built Distribution
admin_logs-0.1.0-py2-none-any.whl
(11.7 kB
view hashes)
Close
Hashes for admin_logs-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8242f2dcd01f23c3fab2db503d5f6dda50822e1076fee8ea78bbf8e473f8268f |
|
MD5 | 630de0faad6c77007e183a4bdcd17105 |
|
BLAKE2b-256 | 5156dd1cc777ace850cf25699e21590d805d0aec826fa32ec3cffee855691572 |