Ejemplo n.º 1
0
 /// <summary>
 /// 记录调试信息
 /// </summary>
 /// <param name="pLogInfo">日志信息</param>
 public void Debug(DebugLogInfo pLogInfo)
 {
     if (pLogInfo != null)
     {
         log4net.ThreadContext.Properties["ClientID"] = pLogInfo.ClientID;
         log4net.ThreadContext.Properties["UserID"] = pLogInfo.UserID;
         log4net.ThreadContext.Properties["Location"] = pLogInfo.Location;
         log4net.ThreadContext.Properties["StackTrace"] = pLogInfo.StackTrances;
         this.InternalDebugLoger.Debug(pLogInfo);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 记录调试信息
 /// </summary>
 /// <param name="pLogInfo">日志信息</param>
 public static void Debug(DebugLogInfo pLogInfo)
 {
     _DefaultLogger.Debug(pLogInfo);
 }