File-like object instances of which are used as the value for the 'wsgi.errors' key in the environ dictionary passed to the application object.

This simply passes writes on to logging system as error events from the 'wsgi' system. In the future, it may be desirable to expose more information in the events it logs, such as the application object which generated the message.

Method write Generate an event for the logging system with the given bytes as the message.
Method writelines Join the given lines and pass them to write to be handled in the usual way.
Method flush Nothing is buffered, so flushing does nothing. This method is required to exist by PEP 333, though.
def write(self, data):

Generate an event for the logging system with the given bytes as the message.

This is called in a WSGI application thread, not the I/O thread.

RaisesTypeErrorOn Python 3, if data is not a native string. On Python 2 a warning will be issued.
def writelines(self, iovec):

Join the given lines and pass them to write to be handled in the usual way.

This is called in a WSGI application thread, not the I/O thread.

ParametersiovecA list of '\n'-terminated str which will be logged.
RaisesTypeErrorOn Python 3, if iovec contains any non-native strings. On Python 2 a warning will be issued.
def flush(self):

Nothing is buffered, so flushing does nothing. This method is required to exist by PEP 333, though.

This is called in a WSGI application thread, not the I/O thread.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.