refine the info for log to file.