class documentation

class twisted.logger.FileLogObserver: (source)

View In Hierarchy

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 text data. Otherwise, UTF-8 bytes will be used. (type: IO[Any])
formatEventA callable that formats an event. (type: Callable[[LogEvent], Optional[str]])
_encoding = (source)

Undocumented

_outFile = (source)

Undocumented

formatEvent = (source)

Undocumented

def __call__(self, event): (source)

Write event to file.

ParameterseventAn event. (type: LogEvent)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.