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.
Metadata
Release files for admin_logs 0.2.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| admin_logs-0.2.14.tar.gz | 9.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| admin_logs-0.2.14-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 27.0 kB
Release files / admin_logs-0.2.14.tar.gz
| Download URL | admin_logs-0.2.14.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
440f66729666e268f111345199471f935b949df03098db0672a307513db5f1b0
|
|
BLAKE2b-256 checksum How to use checksums |
aa558aacb30e43f8aa38fd206cd35aee826759930b761514ec2367a0440fd6b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / admin_logs-0.2.14-py2.py3-none-any.whl
| Download URL | admin_logs-0.2.14-py2.py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
294466b4cd2e2316f3445e604c86e0538cc79d063d3c2adaf537ff3953aaf1d2
|
|
BLAKE2b-256 checksum How to use checksums |
a3288b854e0e0bc632edd014e11f5be3ff41004b28237a27658105c71cb74376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for admin_logs 0.2.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.