Пример #1
0
        public void Log(string tid, Exception ex)
        {
            while (ex != null)
            {
                UdpPaperTrail.SendUdpMessage("<22>" + DateTime.Now.ToString("MMM d H:mm:ss") + key.Spaced() + tid + ": " + ex.Message);
                UdpPaperTrail.SendUdpMessage("<22>" + DateTime.Now.ToString("MMM d H:mm:ss") + key.Spaced() + tid + ": " + ex.StackTrace);
                ex = ex.InnerException;

                if (ex != null)
                {
                    Console.WriteLine("Inner Exception:");
                }
            }
        }
Пример #2
0
 public void Log(string tid, string msg)
 {
     UdpPaperTrail.SendUdpMessage("<22>" + DateTime.Now.ToString("MMM d H:mm:ss") + key.Spaced() + tid + ": " + msg);
 }
Пример #3
0
 public void Log(ExceptionMessage msg)
 {
     UdpPaperTrail.SendUdpMessage("<22>" + DateTime.Now.ToString("MMM d H:mm:ss") + key.Spaced() + ": " + msg.Value);
 }