Exemplo n.º 1
0
 /// <summary>
 /// 记录对数据库的操作信息
 /// </summary>
 /// <param name="pLogInfo">日志信息</param>
 public void Database(DatabaseLogInfo 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.InternalDatabaseLoger.Debug(pLogInfo);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 记录对数据库的操作信息
 /// </summary>
 /// <param name="pLogInfo">日志信息</param>
 public static void Database(DatabaseLogInfo pLogInfo)
 {
     _DefaultLogger.Database(pLogInfo);
 }