put log in string