Beispiel #1
0
        public LogContext(string fileName, ILineParser parser)
        {
            _formattingRuleManager = new FormattingRuleManager();
            _filteringRuleManager  = new FilteringRuleManager();
            _searcher = new Searcher(this);

            _parser      = parser;
            _logProvider = new FilterLogProvider(new LogFileCache(new LogFile(fileName)), _filteringRuleManager);
        }
Beispiel #2
0
 public FilterLogProvider(ILogProvider @internal, FilteringRuleManager filteringRuleManager)
 {
     _internal              = @internal;
     _internal.LogChanged  += InternalOnLogChanged;
     _internal.LogAppended += InternalOnLogAppended;
     _mapping = new List <long>();
     _filteringRuleManager          = filteringRuleManager;
     _filteringRuleManager.Changed += FilteringRuleManagerOnChanged;
     Filter();
 }