21 implementations of CreateLogger
Aspire.Components.Common.Tests (1)
TestLoggerFactory.cs (1)
18public ILogger CreateLogger(string categoryName)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Aspire.Hosting.Tests (1)
tests\Shared\Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Microsoft.AspNetCore.DataProtection.Tests (1)
StringLoggerFactory.cs (1)
26public ILogger CreateLogger(string name)
Microsoft.AspNetCore.Hosting.Tests (3)
Fakes\CustomLoggerFactory.cs (2)
15public ILogger CreateLogger(string categoryName) => NullLogger.Instance; 28public ILogger CreateLogger(string categoryName) => NullLogger.Instance;
WebHostBuilderTests.cs (1)
1781public ILogger CreateLogger(string categoryName) => NullLogger.Instance;
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLoggerFactory.cs (1)
17public ILogger CreateLogger(string name)
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
387public ILogger CreateLogger(string name)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\WrappingLoggerFactory.cs (1)
33public ILogger CreateLogger(string categoryName)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
ListLoggerFactory.cs (1)
38public virtual ILogger CreateLogger(string name)
Microsoft.CodeAnalysis.LanguageServer (1)
Logging\ServerLoggerFactory.cs (1)
37ILogger ILoggerFactory.CreateLogger(string categoryName)
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (2)
139public ILogger CreateLogger(string categoryName) 311public ILogger CreateLogger(string categoryName)
Microsoft.Extensions.Logging.Abstractions (1)
NullLoggerFactory.cs (1)
26public ILogger CreateLogger(string name)
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLoggerFactory.cs (1)
125public ILogger CreateLogger(string categoryName)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\Utils.cs (1)
44public ILogger CreateLogger(string categoryName)
Microsoft.Maui (1)
Hosting\MauiAppBuilder.cs (1)
187 public ILogger CreateLogger(string categoryName) => NullLogger.Instance;
208 references to CreateLogger
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
169ILogger logger = serviceProvider.GetRequiredService<ILoggerFactory>().CreateLogger(ConfluentKafkaCommon.LogCategoryName);
AspireKafkaProducerExtensions.cs (1)
169ILogger logger = serviceProvider.GetRequiredService<ILoggerFactory>().CreateLogger(ConfluentKafkaCommon.LogCategoryName);
Aspire.Dashboard.Tests (3)
Model\ApplicationsSelectHelpersTests.cs (2)
98var app = appVMs.GetApplication(factory.CreateLogger("Test"), "app-app", canSelectGrouping: false, null!); 122var app = appVMs.GetApplication(factory.CreateLogger("Test"), "test", canSelectGrouping: false, null!);
TelemetryRepositoryTests\LogTests.cs (1)
708var logger = loggerFactory.CreateLogger(nameof(LogTests));
Aspire.Hosting (3)
Dashboard\DashboardLifecycleHook.cs (1)
412return loggerFactory.CreateLogger($"Aspire.Hosting.Dashboard.{categoryTrimmed}");
Dcp\DcpHostService.cs (1)
331loggerCache[hashValue] = logger = _loggerFactory.CreateLogger($"Aspire.Hosting.Dcp.{Encoding.UTF8.GetString(category)}");
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
21_hostingLogger = loggerFactory.CreateLogger("Aspire.Hosting");
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
116var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
Aspire.Hosting.Tests (1)
Utils\LoggerNotificationExtensions.cs (1)
116var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (1)
213var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(TryApplyEfMigrationsAsync));
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
116var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
20_logger = loggerFactory.CreateLogger("RabbitMQ.Client");
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
10var logger = loggerfactory.CreateLogger("Requests");
AzureAppServicesSample (1)
Startup.cs (1)
21var logger = loggerfactory.CreateLogger("Requests");
Http3SampleApp (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
19_logger = loggerFactory.CreateLogger(nameof(HttpEventSourceListener));
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
131logger.Logger = _loggerFactory?.CreateLogger("FIXTURE:" + logger.Name);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
959using var publishedApp = await deploymentParameters.ApplicationPublisher.Publish(deploymentParameters, LoggerFactory.CreateLogger("test"));
IISSample (1)
Startup.cs (1)
35var logger = loggerfactory.CreateLogger("Requests");
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
262logger = host.Services.GetRequiredService<ILoggerFactory>().CreateLogger("Test");
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
19_logger = loggerFactory.CreateLogger(nameof(HttpEventSourceListener));
InteropClient (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
19_logger = loggerFactory.CreateLogger(nameof(HttpEventSourceListener));
Kestrel.SampleApp (1)
Startup.cs (1)
29var logger = loggerFactory.CreateLogger("Default");
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTest.cs (4)
351.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!)) 1282.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!)) 1320.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!)) 1354.Setup(lf => lf.CreateLogger(typeof(DefaultAntiforgery).FullName!))
Microsoft.AspNetCore.Authentication (2)
AuthenticationHandler.cs (2)
119Logger = logger.CreateLogger(this.GetType().FullName!); 136Logger = logger.CreateLogger(this.GetType().FullName!);
Microsoft.AspNetCore.Components (2)
RenderTree\Renderer.cs (1)
90_logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Components.RenderTree.Renderer");
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
66_constraintLogger = loggerFactory.CreateLogger(typeof(RouteConstraintMatcher).FullName);
Microsoft.AspNetCore.DataProtection (1)
LoggingServiceProviderExtensions.cs (1)
40return services?.GetService<ILoggerFactory>()?.CreateLogger(type.FullName!) ?? NullLogger.Instance;
Microsoft.AspNetCore.FunctionalTests (4)
WebApplicationFunctionalTests.cs (3)
33var logger = factory.CreateLogger("Test"); 76var logger = factory.CreateLogger("Test"); 128var logger = factory.CreateLogger("Test");
WebHostFunctionalTests.cs (1)
125var logger = factory.CreateLogger("Test");
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\CallHandlers\ServerCallHandlerBase.cs (1)
34Logger = loggerFactory.CreateLogger(LoggerName);
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostService.cs (2)
34Logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Hosting.Diagnostics"); 35LifetimeLogger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime");
Internal\WebHost.cs (1)
129_logger = _applicationServices.GetRequiredService<ILoggerFactory>().CreateLogger("Microsoft.AspNetCore.Hosting.Diagnostics");
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
LinkedApplicationTests.cs (1)
17var logger = loggerFactory.CreateLogger("LinkedApplicationWorks");
ShutdownTests.cs (1)
42var logger = loggerFactory.CreateLogger(testName);
WebHostBuilderTests.cs (1)
24var logger = loggerFactory.CreateLogger(nameof(InjectedStartup_DefaultApplicationNameIsEntryAssembly));
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1068var logger = loggerFactory.CreateLogger(nameof(WebHostBuilderTests));
Microsoft.AspNetCore.Http.Connections (3)
Internal\Transports\LongPollingServerTransport.cs (1)
29_logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Connections.Internal.Transports.LongPollingTransport");
Internal\Transports\ServerSentEventsServerTransport.cs (1)
28_logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Connections.Internal.Transports.ServerSentEventsTransport");
Internal\Transports\WebSocketsServerTransport.cs (1)
34_logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Connections.Internal.Transports.WebSocketsTransport");
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3636return _loggerFactory.CreateLogger(categoryName);
Microsoft.AspNetCore.Http.Results (37)
Accepted.cs (1)
65var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.AcceptedResult");
AcceptedAtRoute.cs (1)
95var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.AcceptedAtRouteResult");
AcceptedAtRouteOfT.cs (1)
109var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.AcceptedAtRouteResult");
AcceptedOfT.cs (1)
86var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.AcceptedResult");
BadRequest.cs (1)
40var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.BadRequestObjectResult");
BadRequestOfT.cs (1)
51var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.BadRequestObjectResult");
ChallengeHttpResult.cs (1)
76var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.ChallengeResult");
Conflict.cs (1)
40var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.ConflictObjectResult");
ConflictOfT.cs (1)
51var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.ConflictObjectResult");
ContentHttpResult.cs (1)
64var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.ContentResult");
Created.cs (1)
65var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.CreatedResult");
CreatedAtRoute.cs (1)
95var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.CreatedAtRouteResult");
CreatedAtRouteOfT.cs (1)
109var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.CreatedAtRouteResult");
CreatedOfT.cs (1)
85var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.CreatedResult");
FileContentHttpResult.cs (1)
113var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.FileContentResult");
FileStreamHttpResult.cs (1)
119var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.FileStreamResult");
ForbidHttpResult.cs (1)
87var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.ForbidResult");
InternalServerError.cs (1)
40var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.InternalServerErrorObjectResult");
InternalServerErrorOfT.cs (1)
51var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.InternalServerErrorObjectResult");
JsonHttpResultOfT.cs (1)
95var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.JsonResult");
NoContent.cs (1)
39var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.NoContentResult");
NotFound.cs (1)
39var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.NotFoundObjectResult");
NotFoundOfT.cs (1)
50var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.NotFoundObjectResult");
Ok.cs (1)
39var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.OkObjectResult");
OkOfT.cs (1)
50var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.OkObjectResult");
PhysicalFileHttpResult.cs (1)
123var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.PhysicalFileResult");
PushStreamHttpResult.cs (1)
107var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.PushStreamResult");
RedirectHttpResult.cs (1)
95var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.RedirectResult");
RedirectToRouteHttpResult.cs (1)
176var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.RedirectToRouteResult");
SignInHttpResult.cs (1)
62var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.SignInResult");
SignOutHttpResult.cs (1)
76var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.SignOutResult");
StatusCodeHttpResult.cs (1)
43var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.StatusCodeResult");
UnauthorizedHttpResult.cs (1)
36var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.UnauthorizedResult");
UnprocessableEntity.cs (1)
40var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.UnprocessableEntityObjectResult");
UnprocessableEntityOfT.cs (1)
51var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.UnprocessableEntityObjectResult");
Utf8ContentHttpResult.cs (1)
59var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.Utf8ContentHttpResult");
VirtualFileHttpResult.cs (1)
118var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Http.Result.VirtualFileResult");
Microsoft.AspNetCore.InternalTesting (2)
AssemblyTestLog.cs (2)
72var logger = loggerFactory.CreateLogger("TestLifetime"); 212var logger = loggerFactory.CreateLogger("GlobalTestLog");
Microsoft.AspNetCore.InternalTesting.Tests (17)
AssemblyTestLogTests.cs (13)
41var logger = LoggerFactory.CreateLogger("Test"); 62var testLogger = testLoggerFactory.CreateLogger("TestLogger"); 81var logger = loggerFactory.CreateLogger("TestLogger"); 124var logger = LoggerFactory.CreateLogger("Test"); 140var testLogger = testLoggerFactory.CreateLogger("TestLogger"); 183var logger = LoggerFactory.CreateLogger("Test"); 210var testLogger = testLoggerFactory.CreateLogger("TestLogger"); 229var logger = LoggerFactory.CreateLogger("Test"); 256var testLogger = testLoggerFactory.CreateLogger("TestLogger"); 276var logger = LoggerFactory.CreateLogger("Test"); 291testLoggerFactory.CreateLogger("TestLogger").LogInformation("Information!"); 318var logger = LoggerFactory.CreateLogger("Test"); 335testLoggerFactory.CreateLogger("TestLogger").LogInformation("Information!");
XunitLoggerProviderTest.cs (4)
22var logger = loggerFactory.CreateLogger("TestCategory"); 40var logger = loggerFactory.CreateLogger("TestCategory"); 54var logger = loggerFactory.CreateLogger("TestCategory"); 76var logger = loggerFactory.CreateLogger("TestCategory");
Microsoft.AspNetCore.Routing (3)
RouteBase.cs (2)
319_constraintLogger = factory.CreateLogger(typeof(RouteConstraintMatcher).FullName!); 320_logger = factory.CreateLogger(typeof(RouteBase).FullName!);
Tree\TreeRouteBuilder.cs (1)
66_constraintLogger = loggerFactory.CreateLogger(typeof(RouteConstraintMatcher).FullName);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Utilities.cs (1)
192return _loggerFactory.CreateLogger(categoryName);
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
21var logger = loggerFactory.CreateLogger("CanDelegateOutOfProcess");
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployer.cs (1)
25Logger = LoggerFactory.CreateLogger(GetType().FullName);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
33Logger = loggerFactory.CreateLogger(deploymentParameters.SiteName);
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Infrastructure\KestrelTrace.cs (5)
18_generalLogger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel"); 19_badRequestsLogger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.BadRequests"); 20_connectionsLogger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Connections"); 21_http2Logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Http2"); 22_http3Logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Http3");
Middleware\ListenOptionsConnectionLoggingExtensions.cs (1)
37var logger = loggerName == null ? loggerFactory.CreateLogger<LoggingConnectionMiddleware>() : loggerFactory.CreateLogger(loggerName);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
KestrelServerTests.cs (7)
273mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(mockLogger.Object); 275mockLoggerFactory.Verify(factory => factory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel")); 573mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(mockLogger.Object); 631mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(mockLogger.Object); 686mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(mockLogger.Object); 786mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(Mock.Of<ILogger>()); 925mockLoggerFactory.Setup(m => m.CreateLogger(It.IsAny<string>())).Returns(Mock.Of<ILogger>());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
40_log = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
QuicTransportFactory.cs (1)
26var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.Quic");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\HttpClient\HttpEventSourceListener.cs (1)
19_logger = loggerFactory.CreateLogger(nameof(HttpEventSourceListener));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Client\SocketConnectionFactory.cs (1)
31_trace = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Client");
SocketConnectionListener.cs (1)
29var logger = loggerFactory.CreateLogger("Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets");
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
142.Setup(m => m.CreateLogger(It.IsAny<string>()))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
98.Setup(m => m.CreateLogger(It.IsAny<string>()))
Microsoft.AspNetCore.SignalR.Tests.Utils (4)
ServerLogScope.cs (2)
28_scopeLogger = _loggerFactory.CreateLogger(nameof(ServerLogScope)); 57logger = _serverLoggers.GetOrAdd(write.LoggerName, loggerName => _loggerFactory.CreateLogger("SERVER " + loggerName));
src\Shared\SignalR\InProcessTestServer.cs (1)
187return _loggerFactory.CreateLogger(categoryName);
src\Shared\SignalR\WrappingLoggerFactory.cs (1)
35return new WrappingLogger(_provider, _innerLoggerFactory.CreateLogger(categoryName));
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\LoggerFinder.cs (1)
20? loggerFactory.CreateLogger(logCategoryName)
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Autobahn\AutobahnTester.cs (3)
26_logger = _loggerFactory.CreateLogger("AutobahnTester"); 45var exitCode = await Wstest.Default.ExecAsync("-m fuzzingclient -s " + specFile, cancellationToken, _loggerFactory.CreateLogger("wstest")); 130var logger = _loggerFactory.CreateLogger($"AutobahnTestApp:{server}:{sslNamePart}:{environment}");
Microsoft.CodeAnalysis.LanguageServer (9)
BrokeredServices\BrokeredServiceTraceListener.cs (1)
23_logger = loggerFactory.CreateLogger(nameof(BrokeredServiceTraceListener));
HostWorkspace\LanguageServerProjectSystem.cs (1)
80_logger = loggerFactory.CreateLogger(nameof(LanguageServerProjectSystem));
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
34_logger = loggerFactory.CreateLogger(nameof(LanguageServerWorkspaceFactory));
HostWorkspace\Razor\RazorWorkspaceListenerInitializer.cs (1)
29_logger = loggerFactory.CreateLogger(nameof(RazorWorkspaceListenerInitializer));
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
35_logger = loggerFactory.CreateLogger(nameof(WorkspaceProjectFactoryService));
Logging\ServerLoggerFactory.cs (1)
40return _loggerFactory.CreateLogger(categoryName);
Program.cs (1)
126var languageServerLogger = loggerFactory.CreateLogger(nameof(LanguageServerHost));
Services\ExtensionAssemblyManager.cs (2)
143var logger = loggerFactory.CreateLogger("DevKitAssemblyResolver"); 207_logger = loggerFactory.CreateLogger($"ALC-{extensionDirectory}");
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
CompilationOptionsReaderTests.cs (1)
37var logger = factory.CreateLogger("RoundTripVerification");
CSharpRebuildTests.cs (1)
31var logger = factory.CreateLogger("Test");
RoundTripUtil.cs (2)
45var logger = factory.CreateLogger("RoundTripVerification"); 78var logger = factory.CreateLogger("RoundTripVerification");
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
377_logger = loggerFactory?.CreateLogger($"BuildHost PID {process.Id}");
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Program.cs (1)
83ILogger logger = LoggerFactory.Create(builder => builder.AddSimpleConsole()).CreateLogger("dotnet-swaggergen");
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
CacheServiceExtensionsTests.cs (1)
103.Setup(lf => lf.CreateLogger(It.IsAny<string>()))
Microsoft.Extensions.Diagnostics.Testing.Tests (5)
Logging\FakeLoggerExtensionsTests.cs (5)
25var logger = factory!.CreateLogger("DOT-NET"); 41var logger = factory!.CreateLogger("Storage"); 46logger = factory.CreateLogger("Network"); 69var logger = factory.CreateLogger("Storage"); 74logger = factory.CreateLogger("Network");
Microsoft.Extensions.Hosting (1)
Internal\ConsoleLifetime.cs (1)
58Logger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime");
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
42Logger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime");
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
56Logger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime");
Microsoft.Extensions.Http (2)
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (2)
51ILogger outerLogger = LoggerFactory.CreateLogger($"System.Net.Http.HttpClient.{loggerName}.LogicalHandler"); 52ILogger innerLogger = LoggerFactory.CreateLogger($"System.Net.Http.HttpClient.{loggerName}.ClientHandler");
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
313return _loggerFactory.CreateLogger(categoryName);
Microsoft.Extensions.Logging.Abstractions (2)
LoggerFactoryExtensions.cs (1)
37return factory.CreateLogger(TypeNameHelper.GetTypeDisplayName(type, includeGenericParameters: false, nestedTypeDelimiter: '.'));
LoggerT.cs (1)
29_logger = factory.CreateLogger(GetCategoryName());
Microsoft.Extensions.Telemetry.PerformanceTests (1)
ExtendedLoggerBench.cs (1)
76return serviceCollection.BuildServiceProvider().GetRequiredService<ILoggerFactory>().CreateLogger("Benchmark");
Microsoft.Extensions.Telemetry.Tests (18)
Logging\ExtendedLoggerFactoryTests.cs (13)
41Assert.Throws<ObjectDisposedException>(() => factory.CreateLogger("d")); 86var logger1 = (ExtendedLogger)factory.CreateLogger("C1"); 89var logger2 = (ExtendedLogger)factory.CreateLogger("C2"); 203var logger = loggerFactory.CreateLogger("Logger"); 253var logger = loggerFactory.CreateLogger("Logger"); 286var logger = loggerFactory.CreateLogger("Logger"); 315var logger = loggerFactory.CreateLogger("Logger"); 343var logger = loggerFactory.CreateLogger("Logger"); 417var logger = loggerFactory.CreateLogger("Logger"); 437var logger = loggerFactory.CreateLogger("Logger"); 468var logger = loggerFactory.CreateLogger("Logger"); 481var logger = loggerFactory.CreateLogger("Logger"); 495var logger = loggerFactory.CreateLogger("Logger");
Logging\ExtendedLoggerTests.cs (4)
650var newLogger = factory.CreateLogger("Logger"); 676var newLogger = factory.CreateLogger("Logger"); 706var newLogger = factory.CreateLogger("Logger"); 741var newLogger = factory.CreateLogger("Logger");
Logging\Utils.cs (1)
46return _loggerFactory.CreateLogger(categoryName);
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
91var logger = serviceProvider.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(Utils));
Microsoft.Maui (1)
Hosting\ServiceProviderExtensions.cs (1)
20 services.GetService<ILoggerFactory>()?.CreateLogger(loggerName);
Microsoft.Maui.Maps (1)
src\Core\src\Hosting\ServiceProviderExtensions.cs (1)
20 services.GetService<ILoggerFactory>()?.CreateLogger(loggerName);
ServerComparison.FunctionalTests (5)
HelloWorldTest.cs (2)
42var logger = loggerFactory.CreateLogger("HelloWorld"); 129var logger = loggerFactory.CreateLogger("ApplicationException");
NtlmAuthenticationTest.cs (1)
37var logger = loggerFactory.CreateLogger("NtlmAuthenticationTest");
ResponseCompressionTests.cs (1)
93var logger = loggerFactory.CreateLogger("ResponseCompression");
ResponseTests.cs (1)
86var logger = loggerFactory.CreateLogger("ResponseFormats");
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (2)
472var logger = LoggerFactory.CreateLogger($"{ typeof(ResponseTests).FullName}.{ nameof(ConnectionClosedWhenResponseDoesNotSatisfyMinimumDataRate)}"); 521var appLogger = LoggerFactory.CreateLogger("App");
Stress.ApiService (2)
Program.cs (2)
139var logger = loggerFactory.CreateLogger("ManyLogs"); 191var logger = loggerFactory.CreateLogger("LogAttributes");
SystemdTestApp (1)
Startup.cs (1)
23var logger = loggerFactory.CreateLogger("Default");