예제 #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);
 }