add the string and logger