reformat logs