implemented logging of string