class documentation

class LogReader: (source)

Constructor: LogReader(name)

View In Hierarchy

Read from a log file.

Method __init__ Open the log file for reading.
Method close Undocumented
Method readLines Read a list of lines from the log file.
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.

def close(self): (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.

Undocumented