Implements interfaces: twisted.logger.ILogObserver

Log observer that writes to a file-like object.

Method __init__
Instance Variable formatEvent Undocumented
Method __call__ Write event to file.
Instance Variable _encoding Undocumented
Instance Variable _outFile Undocumented
def __init__(self, outFile, formatEvent): (source)
ParametersoutFileA file-like object. Ideally one should be passed which accepts unicode data. Otherwise, UTF-8 bytes will be used. (type: io.IOBase)
formatEventA callable that formats an event. (type: callable that takes an event argument and returns a formatted event as unicode.)
_encoding =
Undocumented
_outFile =
Undocumented
formatEvent =
Undocumented
def __call__(self, event): (source)

Write event to file.

ParameterseventAn event. (type: dict)
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.