1 write to Collector
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerProvider.cs (1)
31
Collector
= collector ?? new FakeLogCollector();
8 references to Collector
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (2)
95
fakeLoggerProvider.
Collector
.Clear();
113
var hostLogs = fakeLoggerProvider.
Collector
.GetSnapshot();
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerProvider.cs (1)
71
return _loggers.GetOrAdd(categoryName ?? string.Empty, (name) => new(
Collector
, name)
Microsoft.Extensions.Diagnostics.Testing.Tests (5)
Logging\FakeLoggerProviderTests.cs (5)
17
Assert.Equal(logger.Collector, loggerProvider.
Collector
);
23
Assert.Equal(logger.Collector, loggerProvider.
Collector
);
28
logger = new FakeLogger<FakeLoggerProviderTests>(loggerProvider.
Collector
);
29
Assert.Equal(logger.Collector, loggerProvider.
Collector
);
47
var records = provider.
Collector
.GetSnapshot();