reformat log