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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file admin_logs-0.2.14.tar.gz.
File metadata
- Download URL: admin_logs-0.2.14.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
440f66729666e268f111345199471f935b949df03098db0672a307513db5f1b0
|
|
| MD5 |
3f42b2c0ac892d696e55764f5263518e
|
|
| BLAKE2b-256 |
aa558aacb30e43f8aa38fd206cd35aee826759930b761514ec2367a0440fd6b0
|
File details
Details for the file admin_logs-0.2.14-py2.py3-none-any.whl.
File metadata
- Download URL: admin_logs-0.2.14-py2.py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
294466b4cd2e2316f3445e604c86e0538cc79d063d3c2adaf537ff3953aaf1d2
|
|
| MD5 |
016fc5c9de7f8af4245b7538c1dd7fdb
|
|
| BLAKE2b-256 |
a3288b854e0e0bc632edd014e11f5be3ff41004b28237a27658105c71cb74376
|