replace snprintf with LogStream.