2 writes to _options
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollector.cs (2)
28_options = Throw.IfNullOrMemberNull(options, options?.Value); 36_options = new FakeLogCollectorOptions();
8 references to _options
Microsoft.Extensions.Diagnostics.Testing (8)
Logging\FakeLogCollector.cs (8)
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) 137_options.OutputSink?.Invoke(_options.OutputFormatter(record)); 140internal TimeProvider TimeProvider => _options.TimeProvider;