Fix formatting for logfile