Skip to main content

A Django app to view project logs.

Project description

Django simple log viewer is intended to be a simple app for viewing logs generated in a django project in a simple but intuitive way.

It uses default django LOGGING setting to configure and load logs. If you have your settings as recommended by django, then you shouldn’t have to do anything else.

Log columns are configured using the format setting for each log file, this app simply split up the format setting and use that to create column headers for the view page, if you’d like to see things differently, then you need to update that setting (but make sure it conforms with what you have in the log files).

It’s recommended that you put the ``message`` attribute last in your format setting.

Adding it to your project

  1. Install with pip:: pip install django-simple-log-viewer

  2. Add log_viewer to INSTALLED_APPS in settings.py

  3. Add Log viewer to your URL conf:: path('log-viewer', include('log_viewer.urls')), OR url('log-viewer', include('log_viewer.urls')) as the case may be

  4. Visit the log viewer URL to view your logs

  5. Note that only users with 'superuser' permission can view the log page.

SETTINGS

  1. To change the name displayed on top of the navigation bar, add SITE_NAME to your settings.py and give it a string name

2. If you use a different extension (from .log) for your log files, add the setting LOG_FILE_EXTENSION to settings.py showing your extension. Default value is .log NB: Make sure to add a . before the extension name

3. To change the theme of the view page, extend log_viewer/log_home.html and set the theme name in the block theme. e.g: {% block theme%} green {% endblock %}. (Options: purple | azure | green | orange | danger)

Sample Image

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

django-simple-log-viewer-1.1.1.tar.gz (271.7 kB view details)

Uploaded Source

Built Distribution

django_simple_log_viewer-1.1.1-py3-none-any.whl (277.8 kB view details)

Uploaded Python 3

File details

Details for the file django-simple-log-viewer-1.1.1.tar.gz.

File metadata

  • Download URL: django-simple-log-viewer-1.1.1.tar.gz
  • Upload date:
  • Size: 271.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for django-simple-log-viewer-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9a38ea8e5e84a1f957033eb5fd33c2be027d0af36f69dabd8fe0d8d8383f8dd8
MD5 0bc13acae6b6364250dab5600f9fe36e
BLAKE2b-256 7b39ae8583584cc7059c258e61fa50e8baec73ca95f0a8dcb8783b814cf8c36c

See more details on using hashes here.

File details

Details for the file django_simple_log_viewer-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_simple_log_viewer-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 277.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for django_simple_log_viewer-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff4f1d0619e2e14470daa66b0b1f7c4bd5f6df9a7bbd68a2261c7848b7c62996
MD5 b6a4839f781702c99482836661be5367
BLAKE2b-256 04ffbd06382d7ec46c4e95173e804c6f2ba88d063c95deaae8c7a2b85422e4ba

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