class documentation

class twisted.python.logfile.LogReader: (source)

View In Hierarchy

Read from a log file.

Method __init__ Open the log file for reading.
Method readLines Read a list of lines from the log file.
Method close Undocumented
Instance Variable _file Undocumented
def __init__(self, name): (source)

Open the log file for reading.

The comments about binary-mode for BaseLogFile._openFile also apply here.

_file = (source)

Undocumented

def readLines(self, lines=10): (source)

Read a list of lines from the log file.

This doesn't returns all of the files lines - call it multiple times.

def close(self): (source)

Undocumented

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.