skip to navigation
skip to content

Not Logged In

wsgilog 0.3

WSGI logging and event reporting middleware.

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()
 
File Type Py Version Uploaded on Size
wsgilog-0.3.tar.bz2 (md5) Source 2011-05-07 4KB
wsgilog-0.3.tar.gz (md5) Source 2011-05-07 4KB
wsgilog-0.3.zip (md5) Source 2011-05-07 7KB
  • Downloads (All Versions):
  • 265 downloads in the last day
  • 1785 downloads in the last week
  • 7688 downloads in the last month