parametrise log file and reorder output fields