コード例 #1
0
        public bool ProcessLine(long lineNumber, string logLine)
        {
            var tempLogLine = logLine;

            tempLogLine = ReplaceRegularExpression.Replace(tempLogLine, String.Empty);
            var result = RegularExpression.Match(tempLogLine);

            if (result.Success)
            {
                Line = result.Value;
                RaiseWarningAddedEvent(lineNumber, Line, logLine);
            }
            return(result.Success);
        }
コード例 #2
0
        public bool ProcessLine(long lineNumber, string logLine)
        {
            var tempLogLine = logLine;

            tempLogLine = ReplaceRegularExpression.Replace(tempLogLine, String.Empty);
            var result = RegularExpression.Match(tempLogLine);

            if (result.Success)
            {
                Line     = result.Value;
                Timespan = TimeHelper.GenerateTimespanFromLine(Line);
                RaiseTimestampAddedEvent(lineNumber, Line, logLine);
            }
            return(result.Success);
        }
コード例 #3
0
        public bool ProcessLine(long lineNumber, string logLine)
        {
            var tempLogLine = logLine;

            tempLogLine = ReplaceRegularExpression.Replace(tempLogLine, String.Empty);
            try
            {
                var result = RegularExpression.Match(tempLogLine);
                if (result.Success)
                {
                    Line = result.Groups[2].Value;
                    RaiseProjectStartedEvent(lineNumber, Line, logLine);
                }
                return(result.Success);
            }
            catch (RegexMatchTimeoutException)
            {
                return(false);
            }
        }