Ejemplo n.º 1
0
        public static void ERRORMyException(GlobalAppLogType logType, string title, string subName, Exception exp, string message = null)
        {
            Dictionary <string, string> addInfo = new Dictionary <string, string>();

            addInfo.Add("SubType", "WARNUser");
            addInfo.Add("SubName", subName);
            addInfo.Add("ErrorFlag", GetTracingErrorFlagValue());

            Log(logType, title, exp, message, addInfo);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 记录日志
 /// 此方法跟根据 GlobalAppLogType类型的不同,记录不同类型的日志
 /// </summary>
 /// <param name="logType">GlobalAppLogType</param>
 /// <param name="title">日志标题,此项不能为空</param>
 /// <param name="ex">日志相关的Exception</param>
 /// <param name="message">日志内容</param>
 /// <param name="addInfos">日志的AddInfos</param>
 protected static void Log(GlobalAppLogType logType, string title, Exception ex, string message, Dictionary<string, string> addInfos)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
        public static void ERRORMyException(GlobalAppLogType logType, string title, string subName, Exception exp, string message = null)
        {
            Dictionary<string, string> addInfo = new Dictionary<string, string>();
            addInfo.Add("SubType", "WARNUser");
            addInfo.Add("SubName", subName);
            addInfo.Add("ErrorFlag", GetTracingErrorFlagValue());

            Log(logType, title, exp, message, addInfo);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 记录日志
 /// 此方法跟根据 GlobalAppLogType类型的不同,记录不同类型的日志
 /// </summary>
 /// <param name="logType">GlobalAppLogType</param>
 /// <param name="title">日志标题,此项不能为空</param>
 /// <param name="ex">日志相关的Exception</param>
 /// <param name="message">日志内容</param>
 /// <param name="addInfos">日志的AddInfos</param>
 protected static void Log(GlobalAppLogType logType, string title, Exception ex, string message, Dictionary <string, string> addInfos)
 {
     throw new NotImplementedException();
 }