Skip to main content

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


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 details)

Uploaded Source

Built Distribution

admin_logs-0.2.14-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2 Python 3

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

Hashes for admin_logs-0.2.14.tar.gz
Algorithm Hash digest
SHA256 440f66729666e268f111345199471f935b949df03098db0672a307513db5f1b0
MD5 3f42b2c0ac892d696e55764f5263518e
BLAKE2b-256 aa558aacb30e43f8aa38fd206cd35aee826759930b761514ec2367a0440fd6b0

See more details on using hashes here.

File details

Details for the file admin_logs-0.2.14-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for admin_logs-0.2.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 294466b4cd2e2316f3445e604c86e0538cc79d063d3c2adaf537ff3953aaf1d2
MD5 016fc5c9de7f8af4245b7538c1dd7fdb
BLAKE2b-256 a3288b854e0e0bc632edd014e11f5be3ff41004b28237a27658105c71cb74376

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page