Reformat logging