/// <summary> /// Sends the string. /// </summary> /// <param name="SM">The sm.</param> public override void SendString(StringMessage SM) { Console.WriteLine("LOG: " + GetSingleIndentString(IndentNumber, '.') + SM.Message); }
/// <summary> /// Sends the string. /// </summary> /// <param name="SM">The sm.</param> public abstract void SendString(StringMessage SM);
/// <summary> /// Sends the string. /// </summary> /// <param name="SM">The sm.</param> public override void SendString(StringMessage SM) { ArrayList tempArray = new ArrayList(SM.Message.Split('\r', '\n')); string tempString = new String(' ', SM.UTCTime.ToString("dd-MM-yyyy").Length + 1 + SM.UTCTime.ToLongTimeString().Length); tempString += ""; tempString += GetIndentString(); OutputStream.WriteLine("{0}{1} {2}", SM.UTCTime.ToString("dd-MM-yyyy") + " " + SM.UTCTime.ToLongTimeString(), GetIndentString(), tempArray[0].ToString()); tempArray.RemoveAt(0); foreach (String s in tempArray) { if (s.Trim('\r', '\n').Length != 0) { OutputStream.WriteLine("{0} {1}", tempString, s); } } WriteMessage = true; }