twisted.logger.textFileLogObserver(outFile, timeFormat=timeFormatRFC3339)
function documentationtwisted.logger
View Source
Create a FileLogObserver
that emits text to a specified (writable) file-like object.
Parameters | outFile | A file-like object. Ideally one should be passed which accepts unicode data. Otherwise, UTF-8 bytes will be used. (type: io.IOBase ) |
timeFormat | The format to use when adding timestamp prefixes to logged events. If None , or for events with no "log_timestamp" key, the default timestamp prefix of u"-" is used. (type: unicode or None ) | |
Returns | A file log observer. (type: FileLogObserver ) |
Function | formatEvent | Undocumented |