FormatLogMessage static method

String FormatLogMessage(
  1. String entryKind,
  2. String logEntry
)
Format log message. Kind of the entry. The log entry.

Implementation

static String FormatLogMessage(String entryKind, String logEntry) {
  //todo("correct FormatLogMessage");
  print("correct FormatLogMessage");

  return "$entryKind => $logEntry";
//            StringBuffer sb = new StringBuffer();
//            using (StringWriter writer = new StringWriter(sb))
//            {
//                using (XmlTextWriter xmlWriter = new XmlTextWriter(writer))
//                {
//                    xmlWriter.Formatting = Formatting.Indented;
//
//                    EwsUtilities.WriteTraceStartElement(xmlWriter, entryKind, false);
//
//                    xmlWriter.WriteWhitespace(Environment.NewLine);
//                    xmlWriter.WriteValue(logEntry);
//                    xmlWriter.WriteWhitespace(Environment.NewLine);
//
//                    xmlWriter.WriteEndElement(); // Trace
//                    xmlWriter.WriteWhitespace(Environment.NewLine);
//                }
//            }
//            return sb.ToString();
}