示例#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);
     }
 }
示例#2
0
文件: Loggers.cs 项目: radtek/crm
        /// <summary>
        /// 记录数据库执行的信息
        /// </summary>
        /// <param name="pLogInfo">数据库执行的信息</param>
        public static void Database(DatabaseLogInfo pLogInfo)
        {
#if DEBUG
            Loggers.DEFAULT.Database(pLogInfo);
#endif
        }