Exemplo n.º 1
0
        /// <summary>
        /// 记录跟踪信息
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="message">跟踪信息</param>
        /// <param name="orderid">订单ID</param>
        /// <param name="remark">备注</param>
        public static void WriteTrace(string title, string message, string orderid, string remark)
        {
            var appId = AppSetting.AppID;
            Dictionary <string, string> addInfo = new Dictionary <string, string>();

            addInfo.Add("orderid", orderid);
            addInfo.Add("remark", remark);
            HHLogHelperV2.LOGWebSite(title, message, "HHLogHelperV1_WriteTrace", addInfo);

            //WriteLocalLog(title, message);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 记录异常信息
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="e">异常</param>
        /// <param name="orderid">订单ID</param>
        /// <param name="remark">备注</param>
        public static void WriteException(string title, Exception e, string orderid, string remark)
        {
            var appId = AppSetting.AppID.ToString();

            Dictionary <string, string> addInfo = new Dictionary <string, string>();

            addInfo.Add("orderid", orderid);
            addInfo.Add("remark", remark);

            HHLogHelperV2.ERRORExecption(appId, "HHLogHelperV1_WriteException", e, addInfo);

            //WriteLocalLog(title, e.ToString());
        }