update the log for recording file and line num