Cleaning up log formatting