Exemple #1
0
        /// <summary>
        /// 记录日志
        /// </summary>
        public static async void AddLog(string logguid, EnumLogObjectType type, string remark, string userid, string operateip, string guid, string agentid, string clientid)
        {
            string tablename = "";

            switch (type)
            {
            case EnumLogObjectType.Customer:
                tablename = "CustomerLog";
                break;

            case EnumLogObjectType.Orders:
                tablename = "OrdersLog";
                break;
            }
            await LogDAL.AddLog(tablename, logguid, remark, userid, operateip, guid, agentid, clientid);
        }
Exemple #2
0
        public IHttpActionResult AddAccountSYS(LogEntity log)
        {
            bool         isAddSuccess = false;
            ResultEntity result       = new ResultEntity();

            try
            {
                LOG temp = log.ToLOG();
                isAddSuccess = dal.AddLog(temp);
                result.Data  = log;
            }
            catch (Exception e)
            {
                result.Message = e.Message;
                NtripProxyLogger.LogExceptionIntoFile("调用接口api/Log/AddLog异常,异常信息为:" + e.Message);
            }

            result.IsSuccess = isAddSuccess;
            return(Json <ResultEntity>(result));
        }
Exemple #3
0
        /// <summary>
        /// 向LOG表插入一条记录
        /// </summary>
        /// <param name="info"></param>
        /// <returns>返回0则成功</returns>
        public int AddData(LogInfo info)
        {
            LogDAL dd = new LogDAL(_factoryID);

            return(dd.AddLog(info));
        }
 /// <summary>
 /// 记录日志
 /// </summary>
 /// <param name="logContent"></param>
 /// <param name="ipAddress"></param>
 /// <param name="OPUserId"></param>
 /// <param name="isError"></param>
 /// <returns></returns>
 public int AddLog(string logContent, string ipAddress, string OPUserId, bool isError)
 {
     return(logDal.AddLog(logContent, ipAddress, OPUserId, isError));
 }