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.1.zip (7.9 kB view details)

Uploaded Source

wsgilog-0.3.1.tar.bz2 (4.7 kB view details)

Uploaded Source

Built Distribution

wsgilog-0.3.1-py2-none-any.whl (6.0 kB view details)

Uploaded Python 2

File details

Details for the file wsgilog-0.3.1.zip.

File metadata

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

File hashes

Hashes for wsgilog-0.3.1.zip
Algorithm Hash digest
SHA256 1b0d9ea25ccffd43f9cac82fe6e3552d68f29e9dcb46de96a0e491d6d4d2af6d
MD5 139d3206e356270d3c1ad17b5cb55c75
BLAKE2b-256 efc7f057ba2854c8a1decd07272bcff9c1942ce6d27fb328ced36275c65765ab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wsgilog-0.3.1.tar.bz2
Algorithm Hash digest
SHA256 696265ea43ac6beb9e4a1ab7456758ace0372f459712d5311eda1a950e99e2f0
MD5 f41e5a78815b0835107d98b2e08f4c64
BLAKE2b-256 004e1df2bab12e6a8253fdb9bbbeba7bc20e2d6734636e84552a419f45618f58

See more details on using hashes here.

File details

Details for the file wsgilog-0.3.1-py2-none-any.whl.

File metadata

File hashes

Hashes for wsgilog-0.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 6380ee18542d1253a1955712ba358e4099183904ebeecaa9428f5c1960a4e841
MD5 c515a4473aadce325d9cfbc538e13175
BLAKE2b-256 ef3afc000f1e74ed1be281256776d268533ef5fa12bf0c308582be6ab7dcbbd3

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