private void Log(string msg, Stream data) { string readToEnd = new StreamReader(data).ReadToEnd(); Console.WriteLine(msg, readToEnd); }