add function to print vector log in happen before format