def jsonFileLogObserver(outFile, recordSeparator=u'\x1e'):
 return FileLogObserver(outFile, (lambda event: u'{0}{1}\n'.format(recordSeparator, eventAsJSON(event))))

def jsonFileLogObserver ( outFile , recordSeparator = u'\x1e' ) : return FileLogObserver ( outFile , ( lambda event : u'{0}{1}\n' . format ( recordSeparator , eventAsJSON ( event ) ) ) )
create a l{filelogobserver} that emits json-serialized events to a specified file-like object .