Example #1
0
 public static void LogErrors()
 {
     try
     {
         DataFileHandler.sendToNotifnQ(DataFileHandler.getDTTZ() + "\tInfo\t" + Environment.MachineName + "\tLogErrors()\tExceptionHandler.LogErrors()\tTimer Started");
         System.Timers.Timer t = new System.Timers.Timer(10000);
         t.Elapsed += new System.Timers.ElapsedEventHandler(drainQueueException);
         t.Enabled  = Agent._runCond;
     }
     catch
     {
     }
 }
Example #2
0
 public static void LogDebugMessage(DateTime startTime, string methodName)
 {
     if (DebugEnabled == true)
     {
         try
         {
             debugLogs.Enqueue(new StringBuilder().AppendFormat("{0},{1},{2}", DataFileHandler.getDTTZ(), methodName, (DateTime.Now - startTime).TotalMilliseconds.ToString()).ToString());
             if (isdebugRunning == false)
             {
                 isdebugRunning = true;
                 LogDebug();
             }
         }
         catch { }
     }
 }