Implements interfaces: twisted.logger.ILogObserver

Log observer that writes to a file-like object.

Method __init__
Method __call__ Write event to file.
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.)
def __call__(self, event): (source)

Write event to file.

ParameterseventAn event. (type: dict)
API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.