add time in the log file.