write xmlstring to log file