Reformat log output