pylons.log
– Logging for WSGI errors¶Logging related functionality
This logging Handler logs to environ['wsgi.errors']
as designated
in PEP 333.
pylons.log.
WSGIErrorsHandler
(cache=False, *args, **kwargs)¶A handler class that writes logging records to environ[‘wsgi.errors’].
This code is derived from CherryPy’s
cherrypy._cplogging.WSGIErrorHandler
.
cache
emit
(record)¶Emit a record
flush
()¶Flushes the stream
get_wsgierrors
()¶Return the wsgi.errors stream
Raises a TypeError when outside of a web request (pylons.request is not setup)