modify the log read from file function