2 writes to _options
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollector.cs (2)
30_options = Throw.IfNullOrMemberNull(options, options?.Value); 38_options = new FakeLogCollectorOptions();
9 references to _options
Microsoft.Extensions.Diagnostics.Testing (9)
Logging\FakeLogCollector.cs (9)
119if (_options.FilteredLevels.Count > 0 && !_options.FilteredLevels.Contains(record.Level)) 125if (_options.FilteredCategories.Count > 0) 127if (record.Category == null || !_options.FilteredCategories.Contains(record.Category)) 134if (!record.LevelEnabled && !_options.CollectRecordsForDisabledLogLevels) 140var customFilter = _options.CustomFilter; 164_options.OutputSink?.Invoke(_options.OutputFormatter(record)); 167internal TimeProvider TimeProvider => _options.TimeProvider;