Pass the log file into the subroutine that processes it.