xhttp: convert to memory logging helper