def textFileLogObserver(outFile, timeFormat=timeFormatRFC3339):
 def formatEvent(event):
  return formatEventAsClassicLogText(event, formatTime=(lambda e: formatTime(e, timeFormat)))
 return FileLogObserver(outFile, formatEvent)

def textFileLogObserver ( outFile , timeFormat = timeFormatRFC3339 ) : def formatEvent ( event ) : return formatEventAsClassicLogText ( event , formatTime = ( lambda e : formatTime ( e , timeFormat ) ) ) return FileLogObserver ( outFile , formatEvent )
create a l{filelogobserver} that emits text to a specified file-like object .