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 unicodedata.  Otherwise, UTF-8byteswill 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 ofu"-"is used. (type:unicodeorNone) | |
| Returns | A file log observer. (type: FileLogObserver) | |
| Function | formatEvent | Undocumented |