Log more file name when writing CSV