clean up log format