Skip to main content

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()

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

wsgilog-0.3.zip (7.3 kB view details)

Uploaded Source

wsgilog-0.3.tar.gz (4.3 kB view details)

Uploaded Source

wsgilog-0.3.tar.bz2 (4.6 kB view details)

Uploaded Source

File details

Details for the file wsgilog-0.3.zip.

File metadata

  • Download URL: wsgilog-0.3.zip
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgilog-0.3.zip
Algorithm Hash digest
SHA256 42f648f11e2bb4e3dd765bff441f8ace1d60e8a19fd0f6f767fb5442f9ea73f2
MD5 8d8131e54b753f383f6698b670d19c0f
BLAKE2b-256 dc1be73fdb60f5cc31f18fab78ecf619bb23a247e6681229dece3c786927cc58

See more details on using hashes here.

File details

Details for the file wsgilog-0.3.tar.gz.

File metadata

  • Download URL: wsgilog-0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgilog-0.3.tar.gz
Algorithm Hash digest
SHA256 2193c7eadb7c341970c50b2607f48f12c8031cbd2ce19803c50c55d84417a68f
MD5 f22640806017552df0dc0bd3718f7dc5
BLAKE2b-256 a14364dc07aeb4aed30bb63c8627058838c92a90be10f76e31384c7d32a0de0e

See more details on using hashes here.

File details

Details for the file wsgilog-0.3.tar.bz2.

File metadata

  • Download URL: wsgilog-0.3.tar.bz2
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgilog-0.3.tar.bz2
Algorithm Hash digest
SHA256 1080a36aa50b9647c2b99e11850bbd02c27803a88152a6afb3ca437a41e108f7
MD5 ebf45fe126ec9f6a1959342c0f89f587
BLAKE2b-256 3b8144f38d4c240179a67da39c29fb5eec4353e7606a8313d2a5eca0f1235be4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page