/// <summary>
        /// Set Highlight values to specified column value
        /// </summary>
        /// <param name="col">Target column value</param>
        /// <param name="defList">Highlight definition list</param>
        private void SetHighlights(ParsedLogColumn col, HighlightDefinitionList defList)
        {
            log.InPrivate(col, defList);

            if (col.ColumnDefinition.IsDateTimeField)
            {
                log.OutPrivate();
                return;
            }

            List <HighlightDefinition> targetDefList = defList.Find(col.ColumnDefinition);

            foreach (HighlightDefinition def in targetDefList)
            {
                string key = def.Keyword;
                string val = col.Value;

                if (!def.CaseSensitive)
                {
                    key = key.ToLower();
                    val = val.ToLower();
                }

                if (val.Contains(key))
                {
                    SetAllHightlightItems(key, val, col, def);
                }
            }

            log.OutPrivate();
        }
Example #2
0
        private List <HighlightDefinition> GetTargetHighlightDefList()
        {
            ColumnDefinition colDef = GetTargetColumnDefinition();

            return(highlightDefList.Find(colDef));
        }