Skip to main content

A log viewing and tailing utility accessible via a Django admin panel

Project description



Logtail allows you to view logfiles for your django project via your django
admin, and will also provide you with a live tail of the logfiles using ajax
polling - and therefore without the need for a long-running django process.

Django 1.3+ compatible.

See Also:

Installation and Use

Django logtail takes a dictionary from your as follows::

'apache': '/var/www/',
'django', '/var/log/',

Add it via your installed apps::


If any of your django admin plugin apps already add a jquery header::

LOGTAIL_INCLUDE_JQUERY = False # Default is True

Next hook it into your root_urlconf, above the bog-standard admin urls::

from django_logtail import urls as logtail_urls

urlpatterns = patterns('',
# First this
url(r'^admin/django_logtail/', include(logtail_urls)),

# Then this
url(r'^admin/', include(,

Then absolutely ensure that the user that your django process runs as (whether
it's via wsgi, fastcgi, django runserver for debugging, or something else) has
permission to read all of the files in your LOGTAIL_FILES list.

logtail should then appear in your admin, and provide access to these files -
including a live tail of the file.


Other Settings

You can set the default update interval for the log tailing::

LOGTAIL_UPDATE_INTERVAL = 50000 # Default is 3000 (three second)

Changelog for django_logtail

0.0.5 (2013-03-20)

- Load the jquery js over https where required using a protocol-relative url.

0.0.4 (2012-12-20)

- Improved the quality of the javascript polling code
- The default poll time is now three seconds, rather than every one
- Now Django 1.3+ compatible (@victorgp)

0.0.3 (2012-08-16)

- Add the ability to turn off polling (@scott-w)

0.0.2 (2012-05-04)

- Escape log text to prevent html element lookalikes screwing up the formatting.

0.0.1 (2012-04-22)

- Update the package to ensure that the README and changelog are

0.0.0 (2012-04-22)

- Initial release.

Project details

Download files

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

Files for django_logtail, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size (11.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page