286 references to CreateLogger
Aspire.Dashboard (2)
DashboardWebApplication.cs (1)
423return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
ResourceService\DashboardClient.cs (1)
89_logger = loggerFactory.CreateLogger<DashboardClient>();
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
12_logger = factory.CreateLogger<T>();
Aspire.Dashboard.Tests (4)
Integration\StartupTests.cs (1)
189var logger = loggerFactory.CreateLogger<StartupTests>();
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
422var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }, logger: factory.CreateLogger<OtlpHelpersTests>()); 467var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
tests\Shared\Logging\TestLoggerT.cs (1)
12_logger = factory.CreateLogger<T>();
Aspire.Hosting (2)
Dashboard\DashboardServiceHost.cs (1)
59_logger = loggerFactory.CreateLogger<DashboardServiceHost>();
Dcp\DcpHostService.cs (1)
52_logger = loggerFactory.CreateLogger<DcpHostService>();
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
12_logger = factory.CreateLogger<T>();
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (1)
43var resourceNotificationService = ResourceNotificationServiceTestHelpers.Create(logger: factory.CreateLogger<ResourceNotificationService>());
Dashboard\DashboardServiceTests.cs (4)
82var logger = loggerFactory.CreateLogger<DashboardServiceTests>(); 84var resourceNotificationService = new ResourceNotificationService(loggerFactory.CreateLogger<ResourceNotificationService>(), new TestHostApplicationLifetime(), new ServiceCollection().BuildServiceProvider(), resourceLoggerService); 85using var dashboardServiceData = new DashboardServiceData(resourceNotificationService, resourceLoggerService, loggerFactory.CreateLogger<DashboardServiceData>(), new DashboardCommandExecutor(new ServiceCollection().BuildServiceProvider())); 86var dashboardService = new DashboardService(dashboardServiceData, new TestHostEnvironment(), new TestHostApplicationLifetime(), loggerFactory.CreateLogger<DashboardService>());
tests\Shared\Logging\TestLoggerT.cs (1)
12_logger = factory.CreateLogger<T>();
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
12_logger = factory.CreateLogger<T>();
AutobahnTestApp (1)
Startup.cs (1)
15var logger = loggerFactory.CreateLogger<Startup>();
BuildValidator (3)
LocalReferenceResolver.cs (1)
56var logger = loggerFactory.CreateLogger<LocalReferenceResolver>();
Program.cs (2)
125var logger = loggerFactory.CreateLogger<Program>(); 236var logger = loggerFactory.CreateLogger<Program>();
ClientSample (2)
LoggingMessageHandler.cs (2)
17_logger = loggerFactory.CreateLogger<LoggingMessageHandler>(); 22_logger = loggerFactory.CreateLogger<LoggingMessageHandler>();
CustomEncryptorSample (2)
CustomXmlDecryptor.cs (1)
17_logger = services.GetRequiredService<ILoggerFactory>().CreateLogger<CustomXmlDecryptor>();
CustomXmlEncryptor.cs (1)
17_logger = services.GetRequiredService<ILoggerFactory>().CreateLogger<CustomXmlEncryptor>();
HtmlGenerationWebSite (1)
TestCacheTagHelper.cs (1)
23_logger = loggerFactory.CreateLogger<TestCacheTagHelper>();
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
35_logger = loggerFactory.CreateLogger<AccountController>();
Controllers\ManageController.cs (1)
33_logger = loggerFactory.CreateLogger<ManageController>();
IIS.Tests (1)
Utilities\TestServer.cs (1)
116HttpClient = new HttpClient(new LoggingHandler(new SocketsHttpHandler(), _loggerFactory.CreateLogger<TestServer>()))
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
47Logger = loggerFactory.CreateLogger<Http3InMemory>();
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgery.cs (1)
36_logger = loggerFactory.CreateLogger<DefaultAntiforgery>();
Microsoft.AspNetCore.BrowserTesting (1)
ContextInformation.cs (1)
31var logger = _factory.CreateLogger<PageInformation>();
Microsoft.AspNetCore.Components (2)
Routing\Router.cs (1)
103_logger = LoggerFactory.CreateLogger<Router>();
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
65_logger = loggerFactory.CreateLogger<TreeRouter>();
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\FormDataMapperOptions.cs (1)
35Logger = loggerFactory.CreateLogger<FormDataMapperOptions>();
Microsoft.AspNetCore.Components.Server (4)
Circuits\CircuitFactory.cs (3)
34_logger = _loggerFactory.CreateLogger<CircuitFactory>(); 84_loggerFactory.CreateLogger<RemoteRenderer>(), 107_loggerFactory.CreateLogger<CircuitHost>());
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
28_logger = loggerFactory.CreateLogger<RevalidatingServerAuthenticationStateProvider>();
Microsoft.AspNetCore.Components.Tests (2)
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
188var logger = loggerFactory.CreateLogger<ComponentStatePersistenceManager>(); 214var logger = loggerFactory.CreateLogger<ComponentStatePersistenceManager>();
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyRenderer.cs (1)
33_logger = loggerFactory.CreateLogger<WebAssemblyRenderer>();
Services\WebAssemblyNavigationManager.cs (1)
36_logger = loggerFactory.CreateLogger<WebAssemblyNavigationManager>();
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
117 _logger = LoggerFactory.CreateLogger<StaticContentChangeNotifier>();
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
117 _logger = LoggerFactory.CreateLogger<StaticContentChangeNotifier>();
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
117 _logger = LoggerFactory.CreateLogger<StaticContentChangeNotifier>();
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterMiddleware.cs (1)
36_logger = loggerFactory.CreateLogger<ConcurrencyLimiterMiddleware>();
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
24_logger = loggerFactory.CreateLogger<TestCounterListener>();
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyMiddleware.cs (1)
39_logger = factory.CreateLogger<CookiePolicyMiddleware>();
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsMiddleware.cs (2)
57Logger = loggerFactory.CreateLogger<CorsMiddleware>(); 81Logger = loggerFactory.CreateLogger<CorsMiddleware>();
Infrastructure\CorsService.cs (1)
33_logger = loggerFactory.CreateLogger<CorsService>();
Microsoft.AspNetCore.DataProtection (18)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
32_logger = loggerFactory.CreateLogger<CngCbcAuthenticatedEncryptorFactory>();
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
32_logger = loggerFactory.CreateLogger<CngGcmAuthenticatedEncryptorFactory>();
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
27_logger = loggerFactory.CreateLogger<ManagedAuthenticatedEncryptorFactory>();
EphemeralDataProtectionProvider.cs (1)
60var logger = loggerFactory.CreateLogger<EphemeralDataProtectionProvider>();
Internal\DataProtectionHostedService.cs (1)
26_logger = loggerFactory.CreateLogger<DataProtectionHostedService>();
Internal\KeyManagementOptionsPostSetup.cs (1)
51_logger = loggerFactory.CreateLogger<KeyManagementOptionsPostSetup>();
KeyManagement\DefaultKeyResolver.cs (1)
66_logger = loggerFactory.CreateLogger<DefaultKeyResolver>();
KeyManagement\KeyRingBasedDataProtectionProvider.cs (1)
19_logger = loggerFactory.CreateLogger<KeyRingBasedDataProtector>(); // note: for protector (not provider!) type
KeyManagement\KeyRingProvider.cs (1)
56_logger = loggerFactory.CreateLogger<KeyRingProvider>();
KeyManagement\XmlKeyManager.cs (1)
95_logger = _loggerFactory.CreateLogger<XmlKeyManager>();
LoggingServiceProviderExtensions.cs (2)
17/// This is equivalent to <see cref="LoggerFactoryExtensions.CreateLogger{T}(ILoggerFactory)"/>. 30/// This is equivalent to <see cref="LoggerFactoryExtensions.CreateLogger{T}(ILoggerFactory)"/>.
Repositories\EphemeralXmlRepository.cs (1)
23var logger = loggerFactory.CreateLogger<EphemeralXmlRepository>();
Repositories\FileSystemXmlRepository.cs (1)
33_logger = loggerFactory.CreateLogger<FileSystemXmlRepository>();
Repositories\RegistryXmlRepository.cs (1)
37_logger = loggerFactory.CreateLogger<RegistryXmlRepository>();
XmlEncryption\CertificateXmlEncryptor.cs (1)
54_logger = loggerFactory.CreateLogger<CertificateXmlEncryptor>();
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
45_logger = loggerFactory.CreateLogger<DpapiNGXmlEncryptor>();
XmlEncryption\DpapiXmlEncryptor.cs (1)
38_logger = loggerFactory.CreateLogger<DpapiXmlEncryptor>();
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
36_logger = loggerFactory.CreateLogger<EntityFrameworkCoreXmlRepository<TContext>>();
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
62_logger = loggerFactory.CreateLogger<DeveloperExceptionPageMiddleware>();
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
44_logger = loggerFactory.CreateLogger<ExceptionHandlerMiddleware>();
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
DatabaseErrorPageMiddleware.cs (1)
63_logger = loggerFactory.CreateLogger<DatabaseErrorPageMiddleware>();
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (1)
58_logger = loggerFactory.CreateLogger<JsonTranscodingProviderServiceBinder<TService>>();
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (1)
32_logger = loggerFactory.CreateLogger<JsonTranscodingServiceMethodProvider<TService>>();
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Services\GreeterService.cs (1)
16_logger = loggerFactory.CreateLogger<GreeterService>();
Services\XmlDocService.cs (1)
16_logger = loggerFactory.CreateLogger<XmlDocServiceWithComments>();
Services\XmlDocServiceWithComments.cs (1)
19_logger = loggerFactory.CreateLogger<XmlDocServiceWithComments>();
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationDiagnosticsTests.cs (1)
56var logger = LoggerFactory.CreateLogger<HostingApplication>();
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
24_logger = loggerFactory.CreateLogger<TestCounterListener>();
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (1)
58_logger = _loggerFactory.CreateLogger<HttpConnectionDispatcher>();
Internal\HttpConnectionManager.cs (2)
32_logger = loggerFactory.CreateLogger<HttpConnectionManager>(); 33_connectionLogger = loggerFactory.CreateLogger<HttpConnectionContext>();
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\DefaultTransportFactory.cs (1)
44Log.TransportNotSupported(_loggerFactory.CreateLogger<DefaultTransportFactory>(), HttpTransportType.WebSockets, ex);
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (1)
35Logger = loggerFactory.CreateLogger<FormDataMapperOptions>();
Microsoft.AspNetCore.HttpLogging.Tests (6)
HttpLoggingMiddlewareTests.cs (6)
44LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 54LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 74LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 84LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 94LoggerFactory.CreateLogger<HttpLoggingMiddleware>(), 1982LoggerFactory.CreateLogger<HttpLoggingMiddleware>(),
Microsoft.AspNetCore.HttpOverrides (2)
CertificateForwardingMiddleware.cs (1)
38_logger = loggerFactory.CreateLogger<CertificateForwardingMiddleware>();
ForwardedHeadersMiddleware.cs (1)
63_logger = loggerFactory.CreateLogger<ForwardedHeadersMiddleware>();
Microsoft.AspNetCore.HttpsPolicy (2)
HstsMiddleware.cs (1)
46_logger = loggerFactory.CreateLogger<HstsMiddleware>();
HttpsRedirectionMiddleware.cs (1)
55_logger = loggerFactory.CreateLogger<HttpsRedirectionMiddleware>();
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLoggerT.cs (1)
14_logger = factory.CreateLogger<T>();
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
38_logger = loggerFactory?.CreateLogger<RequestLocalizationMiddleware>() ?? throw new ArgumentNullException(nameof(loggerFactory));
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiDescriptionGroupCollectionProvider.cs (1)
41_logger = loggerFactory.CreateLogger<ApiDescriptionGroupCollectionProvider>();
Microsoft.AspNetCore.Mvc.Core (14)
Infrastructure\ActionSelector.cs (1)
41_logger = loggerFactory.CreateLogger<ActionSelector>();
Infrastructure\ConfigureCompatibilityOptions.cs (1)
35_logger = loggerFactory.CreateLogger<TOptions>();
Infrastructure\DefaultOutputFormatterSelector.cs (1)
42_logger = loggerFactory.CreateLogger<DefaultOutputFormatterSelector>();
Infrastructure\FileResultExecutorBase.cs (1)
83return factory.CreateLogger<T>();
Infrastructure\LocalRedirectResultExecutor.cs (1)
31_logger = loggerFactory.CreateLogger<LocalRedirectResultExecutor>();
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
71options.InputFormatters.Add(new SystemTextJsonInputFormatter(_jsonOptions.Value, _loggerFactory.CreateLogger<SystemTextJsonInputFormatter>()));
Infrastructure\ObjectResultExecutor.cs (1)
39Logger = loggerFactory.CreateLogger<ObjectResultExecutor>();
Infrastructure\RedirectResultExecutor.cs (1)
28_logger = loggerFactory.CreateLogger<RedirectResultExecutor>();
Infrastructure\RedirectToActionResultExecutor.cs (1)
29_logger = loggerFactory.CreateLogger<RedirectToActionResult>();
Infrastructure\RedirectToPageResultExecutor.cs (1)
29_logger = loggerFactory.CreateLogger<RedirectToRouteResult>();
Infrastructure\RedirectToRouteResultExecutor.cs (1)
29_logger = loggerFactory.CreateLogger<RedirectToRouteResult>();
ModelBinding\ModelBinderFactory.cs (1)
46var logger = loggerFactory.CreateLogger<ModelBinderFactory>();
Routing\ControllerRequestDelegateFactory.cs (1)
54_logger = loggerFactory.CreateLogger<ControllerActionInvoker>();
Routing\MvcRouteHandler.cs (1)
28_logger = loggerFactory.CreateLogger<MvcRouteHandler>();
Microsoft.AspNetCore.Mvc.Core.Test (5)
Filters\MiddlewareFilterTest.cs (1)
278new NullLoggerFactory().CreateLogger<ControllerActionInvoker>(),
Formatters\SystemTextJsonInputFormatterTest.cs (1)
191LoggerFactory.CreateLogger<SystemTextJsonInputFormatter>());
Infrastructure\ControllerActionInvokerTest.cs (2)
1433new NullLoggerFactory().CreateLogger<ControllerActionInvoker>(), 1700logger = new NullLoggerFactory().CreateLogger<ControllerActionInvoker>();
Infrastructure\SystemTextJsonResultExecutorTest.cs (1)
17loggerFactory.CreateLogger<SystemTextJsonResultExecutor>());
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonResultExecutorTest.cs (1)
20loggerFactory.CreateLogger<NewtonsoftJsonResultExecutor>(),
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\DefaultViewCompilerProvider.cs (1)
18_compiler = new DefaultViewCompiler(applicationPartManager, loggerFactory.CreateLogger<DefaultViewCompiler>());
RazorViewEngine.cs (1)
76_logger = loggerFactory.CreateLogger<RazorViewEngine>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
RazorProjectPageRouteModelProvider.cs (1)
28_logger = loggerFactory.CreateLogger<RazorProjectPageRouteModelProvider>();
RuntimeViewCompilerProvider.cs (1)
36_logger = loggerFactory.CreateLogger<RuntimeViewCompiler>();
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvokerProvider.cs (1)
51_logger = loggerFactory.CreateLogger<PageActionInvoker>();
Infrastructure\PageRequestDelegateFactory.cs (1)
66_logger = loggerFactory.CreateLogger<PageActionInvoker>();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
60_logger = loggerFactory.CreateLogger<DistributedCacheTagHelperService>();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
CookieTempDataProvider.cs (1)
45_logger = loggerFactory.CreateLogger<CookieTempDataProvider>();
PartialViewResultExecutor.cs (1)
47Logger = loggerFactory.CreateLogger<PartialViewResultExecutor>();
ViewComponentResultExecutor.cs (1)
59_logger = loggerFactory.CreateLogger<ViewComponentResult>();
ViewComponents\DefaultViewComponentInvokerFactory.cs (1)
31_logger = loggerFactory.CreateLogger<DefaultViewComponentInvoker>();
ViewResultExecutor.cs (1)
47Logger = loggerFactory.CreateLogger<ViewResultExecutor>();
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheMiddleware.cs (1)
69_logger = loggerFactory.CreateLogger<OutputCacheMiddleware>();
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
53: this(optionsAccessor, NullLoggerFactory.Instance.CreateLogger<RedisOutputCacheStore>())
Microsoft.AspNetCore.RateLimiting.Tests (7)
RateLimitingMetricsTests.cs (1)
340logger ?? new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(),
RateLimitingMiddlewareTests.cs (6)
26new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(), 44new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(), 53new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(), 72new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(), 146var middleware = CreateTestRateLimitingMiddleware(options, logger: loggerFactory.CreateLogger<RateLimitingMiddleware>()); 651logger ?? new NullLoggerFactory().CreateLogger<RateLimitingMiddleware>(),
Microsoft.AspNetCore.RequestDecompression.Tests (1)
DefaultRequestDecompressionProviderTests.cs (1)
166var logger = loggerFactory.CreateLogger<DefaultRequestDecompressionProvider>();
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
74_logger = loggerFactory.CreateLogger<ResponseCachingMiddleware>();
Microsoft.AspNetCore.Rewrite (1)
RewriteMiddleware.cs (1)
44_logger = loggerFactory.CreateLogger<RewriteMiddleware>();
Microsoft.AspNetCore.Routing (3)
Matching\DfaMatcherBuilder.cs (1)
579return new DfaMatcher(_loggerFactory.CreateLogger<DfaMatcher>(), _selector, states, maxSegmentCount);
RouterMiddleware.cs (1)
33_logger = loggerFactory.CreateLogger<RouterMiddleware>();
Tree\TreeRouteBuilder.cs (1)
65_logger = loggerFactory.CreateLogger<TreeRouter>();
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1078_logger = loggerFactory.CreateLogger<ServiceAccessingEndpointFilter>();
LinkParserTestBase.cs (1)
68serviceProvider.GetRequiredService<ILoggerFactory>().CreateLogger<DefaultLinkParser>(),
Microsoft.AspNetCore.Server.HttpSys (2)
HttpSysListener.cs (1)
58Logger = loggerFactory.CreateLogger<HttpSysListener>();
MessagePump.cs (1)
36_logger = loggerFactory.CreateLogger<MessagePump>();
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
92_logger = loggerFactory.CreateLogger<IISMiddleware>();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\LoggingHandler.cs (1)
15_logger = loggerFactory.CreateLogger<HttpClient>();
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Middleware\HttpsConnectionMiddleware.cs (2)
69_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>(); 125_logger = loggerFactory.CreateLogger<HttpsConnectionMiddleware>();
Middleware\ListenOptionsConnectionLoggingExtensions.cs (1)
37var logger = loggerName == null ? loggerFactory.CreateLogger<LoggingConnectionMiddleware>() : loggerFactory.CreateLogger(loggerName);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
CertificatePathWatcherTests.cs (10)
25var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 75var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 125var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 175var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 215var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 242var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 276var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 316var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 347var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>(); 407var logger = LoggerFactory.CreateLogger<CertificatePathWatcher>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
47Logger = loggerFactory.CreateLogger<Http3InMemory>();
Microsoft.AspNetCore.Session (2)
DistributedSession.cs (1)
79_logger = loggerFactory.CreateLogger<DistributedSession>();
SessionMiddleware.cs (1)
49_logger = loggerFactory.CreateLogger<SessionMiddleware>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (77)
HubConnectionTests.cs (67)
112LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 148LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 177LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 206LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 234LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 266LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 301LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 319var logger = LoggerFactory.CreateLogger<HubConnectionTests>(); 364LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 393LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 433LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 468LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 514LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 549LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 586LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 628LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 670LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 704LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 746LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} during test: {Message}", ex.GetType().Name, ex.Message); 776LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 813LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 860LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 913LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 954LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 995LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1025LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1059LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1086LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1113LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1140LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1167LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1195LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1223LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1251LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1278LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1305LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1332LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1381LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1435LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1498LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1553LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1585LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1627LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1662LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1697LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1732LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1783LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1842LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1950LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 1985LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2021LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2052LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2082LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2185LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2245LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2311LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2351LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2394LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2447LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2490LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2540LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2599LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2668LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2741LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2793LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2835LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 2913LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubConnectionTests.Tracing.cs (6)
120LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 291LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 421LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 518LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 613LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 712LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
HubProtocolVersionTests.cs (4)
57LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 90LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 150LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName); 187LoggerFactory.CreateLogger<HubConnectionTests>().LogError(ex, "{ExceptionType} from test", ex.GetType().FullName);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestHttpMessageHandler.cs (2)
40_logger = loggerFactory?.CreateLogger<TestHttpMessageHandler>() ?? NullLoggerFactory.Instance.CreateLogger<TestHttpMessageHandler>();
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionHandler.cs (1)
63_logger = loggerFactory.CreateLogger<HubConnectionHandler<THub>>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
RedisHubLifetimeManagerTests.cs (1)
100var loggerT = mockLoggerFactory.Object.CreateLogger<RedisHubLifetimeManager<Hub>>();
RedisServerFixture.cs (1)
34_logger = _loggerFactory.CreateLogger<RedisServerFixture<TStartup>>();
Microsoft.AspNetCore.SignalR.Tests (13)
EndToEndTests.cs (13)
92var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 130var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 169var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 219var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 262var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 320var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 384var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 408var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 438var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 474var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 544var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 609var logger = LoggerFactory.CreateLogger<EndToEndTests>(); 648var logger = LoggerFactory.CreateLogger<EndToEndTests>();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
91_logger = _loggerFactory.CreateLogger<InProcessTestServer<TStartup>>();
Microsoft.AspNetCore.StaticFiles (1)
StaticFileMiddleware.cs (1)
44_logger = loggerFactory.CreateLogger<StaticFileMiddleware>();
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
45_logger = loggerFactory.CreateLogger<WebSocketMiddleware>();
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
AutobahnTests.cs (1)
34var logger = loggerFactory.CreateLogger<AutobahnTests>();
Microsoft.CodeAnalysis.LanguageServer (8)
BrokeredServices\BrokeredServiceBridgeProvider.cs (1)
30_logger = loggerFactory.CreateLogger<BrokeredServiceBridgeProvider>();
BrokeredServices\Services\BrokeredServiceBridgeManifest\BrokeredServiceBridgeManifestService.cs (1)
34_logger = loggerFactory.CreateLogger<BrokeredServiceBridgeManifest>();
DotnetCliHelper.cs (1)
26_logger = loggerFactory.CreateLogger<DotnetCliHelper>();
ExportProviderBuilder.cs (1)
33var logger = loggerFactory.CreateLogger<ExportProviderBuilder>();
HostWorkspace\ProjectInitializationHandler.cs (1)
41_logger = loggerFactory.CreateLogger<ProjectInitializationHandler>();
HostWorkspace\WorkspaceProject.cs (1)
26_logger = logger.CreateLogger<WorkspaceProject>();
Program.cs (1)
62var logger = loggerFactory.CreateLogger<Program>();
Services\ExtensionAssemblyManager.cs (1)
50var logger = loggerFactory.CreateLogger<ExportProviderBuilder>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
38_logger = loggerFactory?.CreateLogger<BuildHostProcessManager>();
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
53_logger = loggerFactory.CreateLogger<MemoryCache>();
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
83: this(optionsAccessor, Logging.Abstractions.NullLoggerFactory.Instance.CreateLogger<RedisCache>())
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerT.cs (1)
49_ = factory.CreateLogger<T>();
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
99() => _services.GetRequiredService<ILoggerFactory>().CreateLogger<DefaultHttpClientFactory>(),
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizerFactory.cs (1)
176_loggerFactory.CreateLogger<ResourceManagerStringLocalizer>());
Microsoft.Extensions.Localization.Tests (1)
ResourceManagerStringLocalizerTest.cs (1)
247private ILogger Logger => new TestLoggerFactory(Sink, enabled: true).CreateLogger<ResourceManagerStringLocalizer>();
Microsoft.Maui (1)
Hosting\EssentialsMauiAppBuilderExtensions.cs (1)
161 .CreateLogger<IEssentialsBuilder>()?
Microsoft.ML.GenAI.Samples (1)
Llama\SFT_Llama_3_2_1B.cs (1)
28var logger = loggerFactory.CreateLogger<CasualLMSupervisedFineTuningTrainer>();
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Logging\VSCodeTelemetryLogger.cs (1)
36_logger = loggerFactory.CreateLogger<VSCodeTelemetryLogger>();
Sandbox (1)
Services\GreeterService.cs (1)
20_logger = loggerFactory.CreateLogger<GreeterService>();