2 writes to _options
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollector.cs (2)
28_options = Throw.IfNullOrMemberNull(options, options?.Value); 36_options = new FakeLogCollectorOptions();
9 references to _options
Microsoft.Extensions.Diagnostics.Testing (9)
Logging\FakeLogCollector.cs (9)
111if (_options.FilteredLevels.Count > 0 && !_options.FilteredLevels.Contains(record.Level)) 117if (_options.FilteredCategories.Count > 0) 119if (record.Category == null || !_options.FilteredCategories.Contains(record.Category)) 126if (!record.LevelEnabled && !_options.CollectRecordsForDisabledLogLevels) 132var customFilter = _options.CustomFilter; 144_options.OutputSink?.Invoke(_options.OutputFormatter(record)); 147internal TimeProvider TimeProvider => _options.TimeProvider;