add header format to log file