2 writes to LoggerName
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLogger.cs (1)
56LoggerName = _name,
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\LogSinkProvider.cs (1)
38LoggerName = categoryName,
141 references to LoggerName
IIS.Tests (2)
MaxRequestBodySizeTests.cs (2)
357var appErrorLog = Assert.Single(TestSink.Writes, w => w.LoggerName == "Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer" && w.LogLevel > LogLevel.Debug); 358var badRequestLog = Assert.Single(TestSink.Writes, w => w.LoggerName == "Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer" && w.EventId == new EventId(4, "ConnectionBadRequest"));
InMemory.FunctionalTests (1)
BadHttpRequestTests.cs (1)
227Assert.All(TestSink.Writes.Where(w => w.LoggerName != "Microsoft.Hosting.Lifetime"), w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Debug));
Interop.FunctionalTests (8)
Http3\Http3RequestTests.cs (8)
349return logs.Any(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic" && 1612w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.LoggingConnectionMiddleware" && 1617w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.LoggingConnectionMiddleware" && 1795return logs.Any(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Http3" && 1816w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic" && 1905Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic" && 2064return logs.Any(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Http3" && 2094return logs.Any(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Http3" &&
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (6)
1029return writeContext.LoggerName == typeof(HttpConnectionManager).FullName && 1273return (writeContext.LoggerName == typeof(Internal.Transports.LongPollingServerTransport).FullName && 1275(writeContext.LoggerName == typeof(HttpConnectionManager).FullName && writeContext.EventId.Name == "FailedDispose"); 1360return writeContext.LoggerName == typeof(Internal.Transports.WebSocketsServerTransport).FullName && 2718return (writeContext.LoggerName.Equals("Microsoft.AspNetCore.Http.Connections.Internal.Transports.LongPollingTransport") && 2720(writeContext.LoggerName == typeof(HttpConnectionManager).FullName &&
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1733var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1748var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1763var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1780var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1806var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1823var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1838var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1853var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1870var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1896var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging")); 1942var filteredLogs = TestSink.Writes.Where(w => w.LoggerName.Contains("HttpLogging"));
Microsoft.AspNetCore.Identity.FunctionalTests (4)
MapIdentityApiTests.cs (4)
444w.LoggerName == "Microsoft.AspNetCore.Identity.SignInManager" && 471w.LoggerName == "Microsoft.AspNetCore.Identity.SignInManager" && 498w.LoggerName == "Microsoft.AspNetCore.Identity.SignInManager" && 523w.LoggerName == "Microsoft.AspNetCore.Identity.SignInManager" &&
Microsoft.AspNetCore.InternalTesting (2)
Logging\TestSink.cs (1)
57return context.LoggerName.Equals(typeof(T).FullName);
Logging\WriteContext.cs (1)
34return $"{LogLevel} {LoggerName}: {Message}";
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ApiExplorerTest.cs (1)
1563Assert.Contains(TestSink.Writes, w => w.LoggerName.Equals("Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider", StringComparison.Ordinal));
Microsoft.AspNetCore.Session.Tests (16)
SessionTests.cs (16)
836return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 837|| writeContext.LoggerName.Equals(typeof(DistributedSession).FullName); 879var sessionLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).Single(); 884var sessionMiddlewareLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).Single(); 896return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 897|| writeContext.LoggerName.Equals(typeof(DistributedSession).FullName); 942var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 950var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).ToList(); 962return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 963|| writeContext.LoggerName.Equals(typeof(DistributedSession).FullName); 1009var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1017Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)); 1026return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 1027|| writeContext.LoggerName.Equals(typeof(DistributedSession).FullName); 1073var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1081Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal));
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (10)
HubConnectionTests.cs (7)
127return writeContext.LoggerName == typeof(HttpConnection).FullName && 645return writeContext.LoggerName == DefaultHubDispatcherLoggerName && 1041return writeContext.LoggerName == DefaultHubDispatcherLoggerName && 2139return writeContext.LoggerName == typeof(HubConnection).FullName && 2200return writeContext.LoggerName == typeof(HubConnection).FullName && 2260return writeContext.LoggerName == typeof(HubConnection).FullName && 2851return writeContext.LoggerName == typeof(HubConnection).FullName &&
HubConnectionTests.Tracing.cs (2)
470return writeContext.LoggerName == DefaultHubDispatcherLoggerName && 566return writeContext.LoggerName == DefaultHubDispatcherLoggerName &&
HubProtocolVersionTests.cs (1)
167return writeContext.LoggerName == typeof(HubConnection).FullName;
Microsoft.AspNetCore.SignalR.Client.Tests (28)
HttpConnectionTests.ConnectionLifecycle.cs (5)
84return writeContext.LoggerName == typeof(HttpConnection).FullName && 135return writeContext.LoggerName == typeof(HttpConnection).FullName && 285return writeContext.LoggerName == typeof(LongPollingTransport).FullName && 327return writeContext.LoggerName == typeof(HttpConnection).FullName && 485return writeContext.LoggerName == typeof(HttpConnection).FullName &&
HttpConnectionTests.Negotiate.cs (1)
579return writeContext.LoggerName == typeof(HttpConnection).FullName &&
HubConnectionTests.ConnectionLifecycle.cs (3)
155if (writeContext.LoggerName == typeof(HubConnection).FullName) 494if (writeContext.LoggerName == typeof(HubConnection).FullName) 561if (writeContext.LoggerName == typeof(HubConnection).FullName)
HubConnectionTests.cs (5)
30return writeContext.LoggerName == typeof(HubConnection).FullName && 146return writeContext.LoggerName == typeof(HubConnection).FullName && 350return writeContext.LoggerName == typeof(HubConnection).FullName && 407return writeContext.LoggerName == typeof(HubConnection).FullName && 667return writeContext.LoggerName == typeof(HubConnection).FullName &&
HubConnectionTests.Reconnect.cs (13)
33return writeContext.LoggerName == typeof(HubConnection).FullName && 74return writeContext.LoggerName == typeof(HubConnection).FullName && 188return writeContext.LoggerName == typeof(HubConnection).FullName && 283return writeContext.LoggerName == typeof(HubConnection).FullName && 380return writeContext.LoggerName == typeof(HubConnection).FullName && 476return writeContext.LoggerName == typeof(HubConnection).FullName && 560return writeContext.LoggerName == typeof(HubConnection).FullName && 622return writeContext.LoggerName == typeof(HubConnection).FullName && 676return writeContext.LoggerName == typeof(HubConnection).FullName && 732return writeContext.LoggerName == typeof(HubConnection).FullName && 838return writeContext.LoggerName == typeof(HubConnection).FullName && 958return writeContext.LoggerName == typeof(HubConnection).FullName && 1049return writeContext.LoggerName == typeof(HubConnection).FullName &&
ServerSentEventsTransportTests.cs (1)
166return writeContext.LoggerName == typeof(ServerSentEventsTransport).FullName &&
Microsoft.AspNetCore.SignalR.Tests (28)
EndToEndTests.cs (7)
55return writeContext.LoggerName == typeof(HttpConnection).FullName && 378return writeContext.LoggerName == typeof(HttpConnection).FullName && 402return writeContext.LoggerName == typeof(HttpConnection).FullName && 432return writeContext.LoggerName == typeof(HttpConnection).FullName && 468return writeContext.LoggerName == typeof(HttpConnection).FullName && 603return writeContext.LoggerName == typeof(HttpConnection).FullName && 642return writeContext.LoggerName == typeof(HttpConnection).FullName &&
HubConnectionHandlerTests.Activity.cs (4)
295return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 342return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 394return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 445return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" &&
HubConnectionHandlerTests.cs (16)
499var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") && 529var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") && 580var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") && 733return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 765return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 902var expected = writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 981return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 1123return methodName == nameof(MethodHub.MethodThatThrows) && writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 1527return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 2083return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 3135return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.HubConnectionHandler" && 3208return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 3958Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 3983Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 4158Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" && 4195Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" &&
HubFilterTests.cs (1)
869return writeContext.LoggerName == "Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher" &&
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
ServerLogScope.cs (1)
57logger = _serverLoggers.GetOrAdd(write.LoggerName, loggerName => _loggerFactory.CreateLogger("SERVER " + loggerName));
src\Shared\SignalR\InProcessTestServer.cs (1)
144builder.AppendLine(FormattableString.Invariant($"{log.Timestamp:O} {log.Write.LoggerName} {log.Write.LogLevel}: {log.Write.Formatter(log.Write.State, log.Write.Exception)}"));
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
51string lineMessage = r.LoggerName + " - " + r.EventId.ToString() + " - " + r.Formatter(r.State, r.Exception);
Sockets.FunctionalTests (21)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (14)
249if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel" && 250context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Connections" && 251context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 301if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel" && 302context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Connections" && 303context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 351if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel" && 352context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 410if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel" && 411context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 473if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel" && 474context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 928Assert.Single(TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Connections" && 952if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets")
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (7)
273if (context.LoggerName != "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets") 400w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets"); 411var coreLogs = TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Connections"); 414var transportLogs = TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel" || 415w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets"); 451var transportLogs = TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets"); 455var coreLogs = TestSink.Writes.Where(w => w.LoggerName == "Microsoft.AspNetCore.Server.Kestrel");