This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description

This package provides a new logging handler that defers evaluation of the filepath until a message is emitted. It uses a setting LOG_ROOT as the folder for the log files. This is useful when you don’t know the exact location of your log files when the LOGGING setting is defined - this can be the case if you have a environment specific settings file which gets imported after your core settings.


In your main settings file, configure your handlers with a filename

    'handlers': {
        'error_file': {
            'level': 'INFO',
            'class': 'deferred_filelogger.DeferredFilehandler',
            'filename': 'errors.log',
    'loggers': {
        'django.request': {
            'handlers': ['error_file', 'mail_admins'],
            'level': 'ERROR',
            'propagate': False

then in your environmental overrides (eg, specify a LOG_ROOT folder. For instance, in your test environment you might specify

LOG_ROOT = '/var/www/client/project/logs/test'

which would cause your Django errors to be logged to /var/www/client/project/logs/test/errors.log.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-deferred-filelogger-0.1.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Jun 12, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting