format output log file;