Use a buffered reader to read in the log lines, so the whole log does not have to sit in memory at once.