Esempio n. 1
0
 internal static void Trace(IMachineContext context, string message)
 {
     if (Enabled)
     {
         context.Log(string.Format("{0} {1} {2}", DateTime.Now.ToLocalTime(), context.ToString(), message));
     }
 }
Esempio n. 2
0
 public static void TraceOutput(IMachineContext context, string msg)
 {
     lock(_msgQueue)
     {
         _msgQueue.Enqueue(msg);
         if (_msgQueue.Count > MAX_LOG_LINES)
             _msgQueue.Dequeue();
         if (_this != null)
         {
             _this.InternTraceOutput(msg);
         }
     }
 }