Example #1
0
 public static void Handle(this LogMessage logMessage)
 {
     s_logHandlePool.WriteAsync(logMessage, (data, ex) =>
     {
         LogMessage message = data as LogMessage;
         if (message != null)
         {
             message.Content = string.Format("ex: {0}, log: {1}", ex.ToString(), logMessage.Content);
         }
         //发送失败,直接写本地库
         InsertLog(logMessage);
     });
 }