def readLines(self, lines=10):
        """Read a list of lines from the log file.

        This doesn't returns all of the files lines - call it multiple times.
        """
        result = []
        for i in range(lines):
            line = self._file.readline()
            if not line:
                break
            result.append(line)
        return result
Read a list of lines from the log file.

        This doesn't returns all of the files lines - call it multiple times.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/logfile.py