Skip to main content

Allows the viewing and download of specific log files in real time directly from the Django admin interface.

Project description

Django AdminLogViewer

Allows the viewing and download of specific log files in real time directly from the Django admin interface.

Inspired by Django LogTailer

Features:

  • log files will be shown incrementally in "follow mode"
  • the whole log file can be downloaded for later inspection
  • no Django Models are installed
  • the list of viewable log files is hardcoded in Django settings for security reasons

Quick start

  1. Install Django LogViewer:
pip install django-admin-logviewer
  1. Add it to your INSTALLED_APPS:
    INSTALLED_APPS = (
        ...
        'logviewer',
        ...
    )
  1. Add Django LogViewer's URL patterns:
    urlpatterns = [
        ...
        path('logviewer/', include('logviewer.urls', namespace='logviewer')),
        ...
    ]

Then visit:

http://127.0.0.1:8000/logviewer/logs

Settings

Setting Purpose Default
LOGVIEWER_LOGS list of log files' paths []
LOGVIEWER_REFRESH_INTERVAL in [ms] 1000
LOGVIEWER_INITIAL_NUMBER_OF_CHARS initial n. of chars read from the tail of the existing file 2048

Screenshots

index

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_admin_logviewer-0.1.5-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_admin_logviewer-0.1.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_logviewer-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37f5e16510535eb84336295a86670da12fba13f63c9d3ef24d2e409357def7ed
MD5 dfaff6313a8f12b453ffe356696229e6
BLAKE2b-256 3fea95f6986012a014339be0ce75d059c94dbc31f132419a7b2320605e33f32b

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