示例#1
0
        private void RunAnalyer()
        {
            string name = Path.GetFileName(_fileName);

            Text                 = String.Format("Indihiang - {0}", name);
            _parser.FileName     = _fileName;
            _parser.UseExistData = false;
            _parser.LogParserId  = Guid.NewGuid();
            _parser.UseParallel  = true;
            _parser.Analyze();
        }
示例#2
0
文件: MainForm.cs 项目: thpy/temp
        private void AttachLogParser(string fileNames, Guid id)
        {
            LogParser parser = new LogParser {
                FileName     = fileNames,
                UseExistData = false,
                UseParallel  = true,
                LogParserId  = id
            };

            parser.AnalyzeLogHandler += OnAnalyzeLog;
            parser.EndAnalyzeHandler += OnEndAnalyze;

            parser.Analyze();
            _listParser.Add(id.ToString(), parser);
        }
示例#3
0
文件: MainForm.cs 项目: thpy/temp
        private void AttachIISRemoteLogParser(string name, IISInfo info, Guid id)
        {
            LogParser parser = new LogParser(info)
            {
                FileName     = name,
                UseExistData = false,
                UseParallel  = true,
                LogParserId  = id
            };

            parser.AnalyzeLogHandler += OnAnalyzeLog;
            parser.EndAnalyzeHandler += OnEndAnalyze;

            parser.Analyze();
            _listParser.Add(id.ToString(), parser);
        }