Esempio n. 1
0
        /*===========================================================
        *  功  能:获取日志信息
        *  参  数:	tLogSearchFilter - 日志检索条件
        *       pdwLogQueryHandle - 日志检索句柄
        *  返回值:成功返回TRUE,失败返回FALSE
        *  ===========================================================*/
        public bool LogSearch(LogSearchParam param)
        {
            TLOG_SEARCH_FILTER tLogSearchFilter = new TLOG_SEARCH_FILTER();

            tLogSearchFilter.dwBeginTime = Model.ModelParser.ConvertLinuxTime(param.BeginTime);
            tLogSearchFilter.dwEndTime   = Model.ModelParser.ConvertLinuxTime(param.EndTime);
            tLogSearchFilter.dwLogCount  = param.LogCount;
            tLogSearchFilter.dwLogLevel  = (uint)param.LogLevel;
            tLogSearchFilter.dwLogType   = (uint)param.LogType;
            tLogSearchFilter.dwOptId     = param.OptId;
            tLogSearchFilter.dwOptType   = (uint)param.OptType;
            tLogSearchFilter.dwSortKind  = (uint)param.SortKind;
            tLogSearchFilter.qwLogSqlId  = param.LogId;

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXSDKProtocol VdaSdk_LogSearch dwBeginTime:{0}"
                                                                                                       + ",dwEndTime:{1}"
                                                                                                       + ",dwLogCount:{2}"
                                                                                                       + ",dwLogLevel:{3}"
                                                                                                       + ",dwLogType:{4}"
                                                                                                       + ",dwOptId:{5}"
                                                                                                       + ",dwOptType:{6}"
                                                                                                       + ",dwSortKind:{7}"
                                                                                                       + ",qwLogSqlId:{8}"
                                                                                                       , tLogSearchFilter.dwBeginTime
                                                                                                       , tLogSearchFilter.dwEndTime
                                                                                                       , tLogSearchFilter.dwLogCount
                                                                                                       , tLogSearchFilter.dwLogLevel
                                                                                                       , tLogSearchFilter.dwLogType
                                                                                                       , tLogSearchFilter.dwOptId
                                                                                                       , tLogSearchFilter.dwOptType
                                                                                                       , tLogSearchFilter.dwSortKind
                                                                                                       , tLogSearchFilter.qwLogSqlId
                                                                                                       ));
            bool retVal = IVXSDKProtocol.VdaSdk_LogSearch(tLogSearchFilter);

            if (!retVal)
            {
                // 调用失败,抛异常
                CheckError();
            }
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXSDKProtocol VdaSdk_LogSearch ret:" + retVal);
            return(retVal);
        }
Esempio n. 2
0
 public static extern bool VdaSdk_LogSearch(TLOG_SEARCH_FILTER tLogSearchFilter);