Your trouble is that when you close and reopen the log file in the Scanner you start from the beginning of the log file.
Instead, do away with the first function and just read lines in the for loop:
for i in range(0, len(rec1), 1):
line = s.readline()
print(line)
lines += line
return lines
EDIT
By way of being diplomatic, if you wanted to keep both methods, pass the Scanner in as a parameter in the function call and it will keep track of where it is. So instead of creating a new Scanner in printRecord, instead:
def printRecord(rec1, s):
where s is the Scanner you created in printRecords