Esempio n. 1
0
 /// <summary>
 /// Trace the specified message.
 /// </summary>
 /// <param name="message">Message.</param>
 /// <remarks>ITraceService implementation</remarks>
 public void Trace(Message message)
 {
     //			Console.WriteLine("{0}: TraceService: Writing: {1}", DateTime.Now, message.ToString());
     byte[] buf = Encoding.ASCII.GetBytes(string.Concat(message.ToString(), "\n"));
     _file.Write(buf, 0, buf.Length);
     _file.Flush();
 }
Esempio n. 2
0
 /// <summary>
 /// Trace the specified message.
 /// </summary>
 /// <param name="message">Message.</param>
 /// <remarks>Listener implementation</remarks>
 public override void Trace(Message message)
 {
     Console.WriteLine(message.ToString());
 }