twisted.logger.eventsFromJSONLogFile(inFile, recordSeparator=None, bufferSize=4096) function documentationtwisted.logger
View Source
Load events from a file previously saved with jsonFileLogObserver.
Event records that are truncated or otherwise unreadable are ignored.
| Parameters | inFile | A (readable) file-like object. Data read from inFile should
be unicode
or UTF-8 bytes. (type: iterable of lines) |
| recordSeparator | The expected record separator. If None, attempt to
automatically detect the record separator from one of
u"\x1e" or u"". (type: unicode) | |
| bufferSize | The size of the read buffer used while reading from inFile. (type: integer) | |
| Returns | Log events as read from inFile. (type: iterable of dict) | |