Reformat log functions