Skip to main content
Help us improve Python packaging – donate today!

WSGI logging and event reporting middleware

Project Description

Supports logging events in WSGI applications to STDOUT, time rotated log files, email, syslog, and web servers. Also supports catching and sending HTML-formatted exception tracebacks to a web browser for debugging.

Simple usage example:

from wsgilog import log

@log(tohtml=True, tofile='wsgi.log', tostream=True, toprint=True)
def app(environ, start_response):
    print 'STDOUT is logged.'
    environ['wsgilog.logger'].info('This information is logged.')
    # Exception will be logged and sent to the browser formatted as HTML.
    raise Exception()

if __name__ == '__main__':
     from wsgiref.simple_server import make_server
     http = make_server('', 8080, app)
     http.serve_forever()

Release history Release notifications

This version
History Node

0.3.1

History Node

0.3

History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
wsgilog-0.3.1-py2-none-any.whl (6.0 kB) Copy SHA256 hash SHA256 Wheel 2.7 Oct 17, 2015
wsgilog-0.3.1.tar.bz2 (4.7 kB) Copy SHA256 hash SHA256 Source None Oct 17, 2015
wsgilog-0.3.1.zip (7.9 kB) Copy SHA256 hash SHA256 Source None Oct 17, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page