Clean up log formats.