Latest Version: 0.9.6.1

WSGIErrorsHandler

A handler class that writes logging records to environ['wsgi.errors'].

This code is derived from CherryPy's cherrypy._cplogging.WSGIErrorHandler.


Methods

f __init__(self, cache=True, *args, **kwargs) ...

cache
Whether or not the wsgi.errors stream is cached (instead of looked up via pylons.request.environ for logged message)

f emit(self, record) ...

Emit a record

f flush(self) ...

Flushes the stream

f get_wsgierrors(self) ...

Return the wsgi.errors stream

Raises a TypeError when outside of a web request (pylons.request is not setup)

See the source for more information.

Top