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.2.zip (7.4 kB view details)

Uploaded Source

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

Uploaded Source

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

Uploaded Source

Built Distribution

wsgilog-0.2-py2.6.egg (7.0 kB view details)

Uploaded Source

File details

Details for the file wsgilog-0.2.zip.

File metadata

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

File hashes

Hashes for wsgilog-0.2.zip
Algorithm Hash digest
SHA256 e7fc1253841a73e48b4ef305ec609e572099f8ea22ee02f179f843a915bbe7e2
MD5 272467ed8087c8e5b5595d0c53b34c0f
BLAKE2b-256 03549ed75cbd000767bac332160166a88025fd8cf9ffa8e45e638b010a8b6577

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wsgilog-0.2.tar.gz
Algorithm Hash digest
SHA256 f75057011fb8a0f18dbafa308a062d5cb48ad510183ae3f3563bcdf2b43ee87b
MD5 6000b253f7abc56a89619acc10a22842
BLAKE2b-256 5323492b48abaf7cfc6850efdb21e2bb8794b7139b80f453b17854786aab756b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wsgilog-0.2.tar.bz2
Algorithm Hash digest
SHA256 518cbd9e59e1943835bee4b57c6cd3d2ad083f3246fbcf2558ded1d6f40d1ad5
MD5 5d0d4e50c7f87129474b2de23c6ef6a8
BLAKE2b-256 eecb1bd6c83c4504e9814e0c67fba2daaa89277d374657c6e0071108fccd5193

See more details on using hashes here.

File details

Details for the file wsgilog-0.2-py2.6.egg.

File metadata

  • Download URL: wsgilog-0.2-py2.6.egg
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgilog-0.2-py2.6.egg
Algorithm Hash digest
SHA256 4f619aea970745f44f23674ca8d8621f88e7d750babd11b2afc71eca558418f7
MD5 ce6a556aee0a7c3e75697168a82f188a
BLAKE2b-256 a5bec4d438fbfd89b66186bd0c6dd8a428bcb18a7e3408f8053702a4e4d9e7ac

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