335 instantiations of EventId
aspire (1)
Aspire.Cli.Tests (1)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (1)
Aspire.Hosting.Docker (7)
LoggerMessage.g.cs (7)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(533087880, nameof(NotSupportedResourceWarning)), "{ResourceName} with type '{ResourceType}' is not supported by this publisher", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
22global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(188605179, nameof(WriteMessage)), "{Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
34global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1666676137, nameof(StartGeneratingKubernetes)), "Generating Kubernetes output", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
46global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1559152165, nameof(EmptyModel)), "No resources found in the model.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
58global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1858285282, nameof(FinishGeneratingKubernetes)), "Successfully generated Kubernetes output in '{OutputPath}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
70global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1336907695, nameof(FailedToGetContainerImage)), "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
82global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1839175875, nameof(NotInPublishingMode)), "Not in publishing mode. Skipping writing kubernetes manifests.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
Aspire.Hosting.Kubernetes (7)
LoggerMessage.g.cs (7)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(533087880, nameof(NotSupportedResourceWarning)), "{ResourceName} with type '{ResourceType}' is not supported by this publisher", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
22global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(188605179, nameof(WriteMessage)), "{Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
34global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1666676137, nameof(StartGeneratingKubernetes)), "Generating Kubernetes output", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
46global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1559152165, nameof(EmptyModel)), "No resources found in the model.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
58global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1858285282, nameof(FinishGeneratingKubernetes)), "Successfully generated Kubernetes output in '{OutputPath}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
70global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1336907695, nameof(FailedToGetContainerImage)), "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
82global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1839175875, nameof(NotInPublishingMode)), "Not in publishing mode. Skipping writing kubernetes manifests.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
Aspire.RabbitMQ.Client (1)
IIS.Tests (2)
Microsoft.AspNetCore.Antiforgery (2)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.BearerToken (2)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Cookies (2)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.CookiePolicy (2)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HostFiltering (2)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.HttpLogging (5)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.HttpsPolicy (2)
Microsoft.AspNetCore.Identity (22)
EventIds.cs (12)
10public static readonly EventId UserCannotSignInWithoutConfirmedEmail = new(0, "UserCannotSignInWithoutConfirmedEmail");
11public static readonly EventId SecurityStampValidationFailed = new(0, "SecurityStampValidationFailed");
12public static readonly EventId SecurityStampValidationFailedId4 = new(4, "SecurityStampValidationFailed");
13public static readonly EventId UserCannotSignInWithoutConfirmedPhoneNumber = new(1, "UserCannotSignInWithoutConfirmedPhoneNumber");
14public static readonly EventId InvalidPassword = new(2, "InvalidPassword");
15public static readonly EventId UserLockedOut = new(3, "UserLockedOut");
16public static readonly EventId UserCannotSignInWithoutConfirmedAccount = new(4, "UserCannotSignInWithoutConfirmedAccount");
17public static readonly EventId TwoFactorSecurityStampValidationFailed = new(5, "TwoFactorSecurityStampValidationFailed");
18public static readonly EventId NoPasskeyCreationOptions = new(6, "NoPasskeyCreationOptions");
19public static readonly EventId UserDoesNotMatchPasskeyCreationOptions = new(7, "UserDoesNotMatchPasskeyCreationOptions");
20public static readonly EventId PasskeyAttestationFailed = new(8, "PasskeyAttestationFailed");
21public static readonly EventId PasskeyAssertionFailed = new(9, "PasskeyAssertionFailed");
GeneratedRouteBuilderExtensions.g.cs (8)
1538LoggerMessage.Define(LogLevel.Debug, new EventId(1, "RequestBodyIOException"), "Reading the request body failed with an IOException.");
1555LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(2, "InvalidJsonRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as JSON.");
1572LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(3, "ParameterBindingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from \"{SourceValue}\".");
1589LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(4, "RequiredParameterNotProvided"), "Required parameter \"{ParameterType} {ParameterName}\" was not provided from {Source}.");
1606LoggerMessage.Define<string>(LogLevel.Debug, new EventId(5, "ImplicitBodyNotProvided"), "Implicit body inferred for parameter \"{ParameterName}\" but no body was provided. Did you mean to use a Service instead?");
1623LoggerMessage.Define<string>(LogLevel.Debug, new EventId(6, "UnexpectedContentType"), "Expected a supported JSON media type but got \"{ContentType}\".");
1640LoggerMessage.Define<string>(LogLevel.Debug, new EventId(7, "UnexpectedNonFormContentType"), "Expected a supported form media type but got \"{ContentType}\".");
1657LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(8, "InvalidFormRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as form.");
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Microsoft.AspNetCore.Identity.UI (17)
LoggerEventIds.cs (17)
16public static readonly EventId UserCreatedByExternalProvider = new EventId(1, "UserCreatedByExternalProvider");
21public static readonly EventId UserLoggedInByExternalProvider = new EventId(2, "UserLoggedInByExternalProvider");
26public static readonly EventId UserLogin = new EventId(3, "UserLogin");
31public static readonly EventId UserLockout = new EventId(4, "UserLockout");
36public static readonly EventId UserLoginWith2FA = new EventId(5, "UserLoginWith2FA");
41public static readonly EventId InvalidAuthenticatorCode = new EventId(6, "InvalidAuthenticatorCode");
46public static readonly EventId UserLoginWithRecoveryCode = new EventId(7, "UserLoginWithRecoveryCode");
51public static readonly EventId InvalidRecoveryCode = new EventId(8, "InvalidRecoveryCode");
56public static readonly EventId PasswordChanged = new EventId(9, "PasswordChanged");
61public static readonly EventId UserDeleted = new EventId(10, "UserDeleted");
66public static readonly EventId TwoFADisabled = new EventId(11, "TwoFADisabled");
71public static readonly EventId PersonalDataRequested = new EventId(12, "PersonalDataRequested");
76public static readonly EventId TwoFAEnabled = new EventId(13, "TwoFAEnabled");
81public static readonly EventId TwoFARecoveryGenerated = new EventId(14, "TwoFARecoveryGenerated");
86public static readonly EventId AuthenticationAppKeyReset = new EventId(15, "AuthenticationAppKeyReset");
91public static readonly EventId UserCreated = new EventId(16, "UserCreated");
96public static readonly EventId UserLoggedOut = new EventId(17, "UserLoggedOut");
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Cors (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (8)
GeneratedRouteBuilderExtensions.g.cs (8)
293LoggerMessage.Define(LogLevel.Debug, new EventId(1, "RequestBodyIOException"), "Reading the request body failed with an IOException.");
310LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(2, "InvalidJsonRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as JSON.");
327LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(3, "ParameterBindingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from \"{SourceValue}\".");
344LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(4, "RequiredParameterNotProvided"), "Required parameter \"{ParameterType} {ParameterName}\" was not provided from {Source}.");
361LoggerMessage.Define<string>(LogLevel.Debug, new EventId(5, "ImplicitBodyNotProvided"), "Implicit body inferred for parameter \"{ParameterName}\" but no body was provided. Did you mean to use a Service instead?");
378LoggerMessage.Define<string>(LogLevel.Debug, new EventId(6, "UnexpectedContentType"), "Expected a supported JSON media type but got \"{ContentType}\".");
395LoggerMessage.Define<string>(LogLevel.Debug, new EventId(7, "UnexpectedNonFormContentType"), "Expected a supported form media type but got \"{ContentType}\".");
412LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(8, "InvalidFormRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as form.");
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.ResponseCompression (2)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.StaticAssets (2)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Diagnostics.HealthChecks (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (10)
HealthCheckPublisherHostedServiceTest.cs (10)
25public static readonly EventId HealthCheckProcessingBegin = new EventId(DefaultHealthCheckService.EventIds.HealthCheckProcessingBeginId, DefaultHealthCheckService.EventIds.HealthCheckProcessingBeginName);
26public static readonly EventId HealthCheckProcessingEnd = new EventId(DefaultHealthCheckService.EventIds.HealthCheckProcessingEndId, DefaultHealthCheckService.EventIds.HealthCheckProcessingEndName);
27public static readonly EventId HealthCheckBegin = new EventId(DefaultHealthCheckService.EventIds.HealthCheckBeginId, DefaultHealthCheckService.EventIds.HealthCheckBeginName);
28public static readonly EventId HealthCheckEnd = new EventId(DefaultHealthCheckService.EventIds.HealthCheckEndId, DefaultHealthCheckService.EventIds.HealthCheckEndName);
32public static readonly EventId HealthCheckPublisherProcessingBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginName);
33public static readonly EventId HealthCheckPublisherProcessingEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndName);
34public static readonly EventId HealthCheckPublisherBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginName);
35public static readonly EventId HealthCheckPublisherEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndName);
36public static readonly EventId HealthCheckPublisherError = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorName);
37public static readonly EventId HealthCheckPublisherTimeout = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutName);
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (6)
69logger.Log<int>(LogLevel.Error, new EventId(0), 42, null, (_, _) => "MESSAGE");
82logger.Log(LogLevel.Debug, new EventId(1), l, null, (_, _) => "Nothing");
97logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE");
111logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE");
127logger.Log(LogLevel.Error, new EventId(0), dt, null, (_, _) => "MESSAGE");
135logger.Log(LogLevel.Debug, new EventId(1), l, null, (_, _) => "Nothing");
Microsoft.Extensions.Hosting (11)
Internal\LoggerEventIds.cs (11)
10public static readonly EventId Starting = new EventId(1, nameof(Starting));
11public static readonly EventId Started = new EventId(2, nameof(Started));
12public static readonly EventId Stopping = new EventId(3, nameof(Stopping));
13public static readonly EventId Stopped = new EventId(4, nameof(Stopped));
14public static readonly EventId StoppedWithException = new EventId(5, nameof(StoppedWithException));
15public static readonly EventId ApplicationStartupException = new EventId(6, nameof(ApplicationStartupException));
16public static readonly EventId ApplicationStoppingException = new EventId(7, nameof(ApplicationStoppingException));
17public static readonly EventId ApplicationStoppedException = new EventId(8, nameof(ApplicationStoppedException));
18public static readonly EventId BackgroundServiceFaulted = new EventId(9, nameof(BackgroundServiceFaulted));
19public static readonly EventId BackgroundServiceStoppingHost = new EventId(10, nameof(BackgroundServiceStoppingHost));
20public static readonly EventId HostedServiceStartupFaulted = new EventId(11, nameof(HostedServiceStartupFaulted));
Microsoft.Extensions.Http (14)
Logging\LogHelper.cs (10)
16public static readonly EventId RequestStart = new EventId(100, "RequestStart");
17public static readonly EventId RequestEnd = new EventId(101, "RequestEnd");
19public static readonly EventId RequestHeader = new EventId(102, "RequestHeader");
20public static readonly EventId ResponseHeader = new EventId(103, "ResponseHeader");
22public static readonly EventId RequestFailed = new EventId(104, "RequestFailed");
24public static readonly EventId PipelineStart = new EventId(100, "RequestPipelineStart");
25public static readonly EventId PipelineEnd = new EventId(101, "RequestPipelineEnd");
27public static readonly EventId RequestPipelineRequestHeader = new EventId(102, "RequestPipelineRequestHeader");
28public static readonly EventId RequestPipelineResponseHeader = new EventId(103, "RequestPipelineResponseHeader");
30public static readonly EventId PipelineFailed = new EventId(104, "RequestPipelineFailed");
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Identity.Core (15)
LoggerEventIds.cs (15)
10public static readonly EventId RoleValidationFailed = new EventId(0, "RoleValidationFailed");
11public static readonly EventId InvalidPassword = new EventId(0, "InvalidPassword");
12public static readonly EventId UserAlreadyHasPassword = new EventId(1, "UserAlreadyHasPassword");
13public static readonly EventId ChangePasswordFailed = new EventId(2, "ChangePasswordFailed");
14public static readonly EventId AddLoginFailed = new EventId(4, "AddLoginFailed");
15public static readonly EventId UserAlreadyInRole = new EventId(5, "UserAlreadyInRole");
16public static readonly EventId UserNotInRole = new EventId(6, "UserNotInRole");
17public static readonly EventId PhoneNumberChanged = new EventId(7, "PhoneNumberChanged");
18public static readonly EventId VerifyUserTokenFailed = new EventId(9, "VerifyUserTokenFailed");
19public static readonly EventId VerifyTwoFactorTokenFailed = new EventId(10, "VerifyTwoFactorTokenFailed");
20public static readonly EventId LockoutFailed = new EventId(11, "LockoutFailed");
21public static readonly EventId UserLockedOut = new EventId(12, "UserLockedOut");
22public static readonly EventId UserValidationFailed = new EventId(13, "UserValidationFailed");
23public static readonly EventId PasswordValidationFailed = new EventId(14, "PasswordValidationFailed");
24public static readonly EventId GetSecurityStampFailed = new EventId(15, "GetSecurityStampFailed");
Microsoft.Extensions.Localization (2)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.ML (8)
Microsoft.Extensions.Telemetry.PerformanceTests (4)
Microsoft.Extensions.Telemetry.Tests (34)
Logging\ExtendedLoggerTests.cs (32)
73logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2");
84Assert.Equal(new EventId(0), snap[0].Id);
100Assert.Equal(new EventId(2, "ID2"), snap[1].Id);
154logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2");
190logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2");
201Assert.Equal(new EventId(0), snap[0].Id);
208Assert.Equal(new EventId(2, "ID2"), snap[1].Id);
250logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
251logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, null, (_, _) => "MSG0b");
254logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2");
255logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), (LoggerMessageState?)null, null, (_, _) => "MSG2b");
266Assert.Equal(new EventId(0, "ID0"), snap[0].Id);
273Assert.Equal(new EventId(0, "ID0b"), snap[1].Id);
280Assert.Equal(new EventId(2, "ID2"), snap[2].Id);
287Assert.Equal(new EventId(2, "ID2b"), snap[3].Id);
315logger.Log(LogLevel.Warning, new EventId(0, "ID0"), e, null, (_, _) => "MSG0");
326Assert.Equal(new EventId(0, "ID0"), snap[0].Id);
384logger.Log(LogLevel.Warning, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0");
395Assert.Equal(new EventId(0, "ID0"), snap[0].Id);
417logger.Log(LogLevel.Information, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0");
488logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
489logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, ex, (_, _) => "MSG0b");
492logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2");
493logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), lms, ex, (_, _) => "MSG2b");
504Assert.Equal(new EventId(0, "ID0"), snap[0].Id);
509Assert.Equal(new EventId(0, "ID0b"), snap[1].Id);
514Assert.Equal(new EventId(2, "ID2"), snap[2].Id);
519Assert.Equal(new EventId(2, "ID2b"), snap[3].Id);
842logger.Log(LogLevel.Warning, new EventId(1, "ID1"), state, exception, (_, _) => "MSG");
890logger.Log(LogLevel.Warning, new EventId(1, "ID1"), list, exception, (_, _) => "MSG");
901logger.Log(LogLevel.Warning, new EventId(1, "ID1"), enumerable, exception, (_, _) => "MSG");
905logger.Log(LogLevel.Warning, new EventId(1, "ID1"), "V4", exception, (_, _) => "MSG");
Logging\SerialExtendedLoggerTests.cs (2)
52logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
55logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2");
Sample (8)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.Http.RequestDelegateGenerator\Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator\GeneratedRouteBuilderExtensions.g.cs (8)
6075LoggerMessage.Define(LogLevel.Debug, new EventId(1, "RequestBodyIOException"), "Reading the request body failed with an IOException.");
6092LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(2, "InvalidJsonRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as JSON.");
6109LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(3, "ParameterBindingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from \"{SourceValue}\".");
6126LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(4, "RequiredParameterNotProvided"), "Required parameter \"{ParameterType} {ParameterName}\" was not provided from {Source}.");
6143LoggerMessage.Define<string>(LogLevel.Debug, new EventId(5, "ImplicitBodyNotProvided"), "Implicit body inferred for parameter \"{ParameterName}\" but no body was provided. Did you mean to use a Service instead?");
6160LoggerMessage.Define<string>(LogLevel.Debug, new EventId(6, "UnexpectedContentType"), "Expected a supported JSON media type but got \"{ContentType}\".");
6177LoggerMessage.Define<string>(LogLevel.Debug, new EventId(7, "UnexpectedNonFormContentType"), "Expected a supported form media type but got \"{ContentType}\".");
6194LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(8, "InvalidFormRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as form.");
302 references to EventId
aspire (24)
Aspire.Dashboard (2)
Aspire.Dashboard.Components.Tests (4)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (4)
ApplicationModel\ResourceLoggerService.cs (2)
117public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
575public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (5)
Aspire.Playground.Tests (4)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
BuildValidator (2)
DemoLogger.cs (2)
40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
71public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Diagnostics.EFCore.FunctionalTests (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (7)
HttpsTests.cs (3)
821public EventId LastEventId { get; set; }
824public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
852public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Authorization.Test (5)
DefaultAuthorizationServiceTests.cs (5)
1160private readonly Action<LogLevel, EventId, object, Exception, Func<object, Exception, string>> _assertion;
1162public DefaultAuthorizationServiceTestLogger(Action<LogLevel, EventId, object, Exception, Func<object, Exception, string>> assertion)
1177public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
1188static void Assertion(LogLevel level, EventId eventId, object state, Exception exception, Func<object, Exception, string> formatter)
1221static void Assertion(LogLevel level, EventId eventId, object state, Exception exception, Func<object, Exception, string> formatter)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (2)
1305public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
1328public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Microsoft.AspNetCore.Identity (12)
EventIds.cs (12)
10public static readonly EventId UserCannotSignInWithoutConfirmedEmail = new(0, "UserCannotSignInWithoutConfirmedEmail");
11public static readonly EventId SecurityStampValidationFailed = new(0, "SecurityStampValidationFailed");
12public static readonly EventId SecurityStampValidationFailedId4 = new(4, "SecurityStampValidationFailed");
13public static readonly EventId UserCannotSignInWithoutConfirmedPhoneNumber = new(1, "UserCannotSignInWithoutConfirmedPhoneNumber");
14public static readonly EventId InvalidPassword = new(2, "InvalidPassword");
15public static readonly EventId UserLockedOut = new(3, "UserLockedOut");
16public static readonly EventId UserCannotSignInWithoutConfirmedAccount = new(4, "UserCannotSignInWithoutConfirmedAccount");
17public static readonly EventId TwoFactorSecurityStampValidationFailed = new(5, "TwoFactorSecurityStampValidationFailed");
18public static readonly EventId NoPasskeyCreationOptions = new(6, "NoPasskeyCreationOptions");
19public static readonly EventId UserDoesNotMatchPasskeyCreationOptions = new(7, "UserDoesNotMatchPasskeyCreationOptions");
20public static readonly EventId PasskeyAttestationFailed = new(8, "PasskeyAttestationFailed");
21public static readonly EventId PasskeyAssertionFailed = new(9, "PasskeyAssertionFailed");
Microsoft.AspNetCore.Identity.Specification.Tests (1)
Microsoft.AspNetCore.Identity.UI (17)
LoggerEventIds.cs (17)
16public static readonly EventId UserCreatedByExternalProvider = new EventId(1, "UserCreatedByExternalProvider");
21public static readonly EventId UserLoggedInByExternalProvider = new EventId(2, "UserLoggedInByExternalProvider");
26public static readonly EventId UserLogin = new EventId(3, "UserLogin");
31public static readonly EventId UserLockout = new EventId(4, "UserLockout");
36public static readonly EventId UserLoginWith2FA = new EventId(5, "UserLoginWith2FA");
41public static readonly EventId InvalidAuthenticatorCode = new EventId(6, "InvalidAuthenticatorCode");
46public static readonly EventId UserLoginWithRecoveryCode = new EventId(7, "UserLoginWithRecoveryCode");
51public static readonly EventId InvalidRecoveryCode = new EventId(8, "InvalidRecoveryCode");
56public static readonly EventId PasswordChanged = new EventId(9, "PasswordChanged");
61public static readonly EventId UserDeleted = new EventId(10, "UserDeleted");
66public static readonly EventId TwoFADisabled = new EventId(11, "TwoFADisabled");
71public static readonly EventId PersonalDataRequested = new EventId(12, "PersonalDataRequested");
76public static readonly EventId TwoFAEnabled = new EventId(13, "TwoFAEnabled");
81public static readonly EventId TwoFARecoveryGenerated = new EventId(14, "TwoFARecoveryGenerated");
86public static readonly EventId AuthenticationAppKeyReset = new EventId(15, "AuthenticationAppKeyReset");
91public static readonly EventId UserCreated = new EventId(16, "UserCreated");
96public static readonly EventId UserLoggedOut = new EventId(17, "UserLoggedOut");
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
src\Shared\SignalR\LogSinkProvider.cs (2)
32public void Log<TState>(string categoryName, LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
71public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (4)
ListLoggerFactory.cs (4)
28public List<(LogLevel Level, EventId Id, string Message, object State, Exception Exception)> Log => Logger.LoggedEvents;
68public List<(LogLevel, EventId, string, object, Exception)> LoggedEvents { get; }
69= new List<(LogLevel, EventId, string, object, Exception)>();
80LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Microsoft.AspNetCore.TestHost.Tests (3)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Feed.Tests (2)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
LogCollector.cs (3)
12private readonly List<(string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)> _items = [];
14public (string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)[] ToArray()
76void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (10)
HealthCheckPublisherHostedServiceTest.cs (10)
25public static readonly EventId HealthCheckProcessingBegin = new EventId(DefaultHealthCheckService.EventIds.HealthCheckProcessingBeginId, DefaultHealthCheckService.EventIds.HealthCheckProcessingBeginName);
26public static readonly EventId HealthCheckProcessingEnd = new EventId(DefaultHealthCheckService.EventIds.HealthCheckProcessingEndId, DefaultHealthCheckService.EventIds.HealthCheckProcessingEndName);
27public static readonly EventId HealthCheckBegin = new EventId(DefaultHealthCheckService.EventIds.HealthCheckBeginId, DefaultHealthCheckService.EventIds.HealthCheckBeginName);
28public static readonly EventId HealthCheckEnd = new EventId(DefaultHealthCheckService.EventIds.HealthCheckEndId, DefaultHealthCheckService.EventIds.HealthCheckEndName);
32public static readonly EventId HealthCheckPublisherProcessingBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginName);
33public static readonly EventId HealthCheckPublisherProcessingEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndName);
34public static readonly EventId HealthCheckPublisherBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginName);
35public static readonly EventId HealthCheckPublisherEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndName);
36public static readonly EventId HealthCheckPublisherError = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorName);
37public static readonly EventId HealthCheckPublisherTimeout = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutName);
Microsoft.Extensions.Diagnostics.Testing (3)
Microsoft.Extensions.Hosting (12)
Internal\LoggerEventIds.cs (11)
10public static readonly EventId Starting = new EventId(1, nameof(Starting));
11public static readonly EventId Started = new EventId(2, nameof(Started));
12public static readonly EventId Stopping = new EventId(3, nameof(Stopping));
13public static readonly EventId Stopped = new EventId(4, nameof(Stopped));
14public static readonly EventId StoppedWithException = new EventId(5, nameof(StoppedWithException));
15public static readonly EventId ApplicationStartupException = new EventId(6, nameof(ApplicationStartupException));
16public static readonly EventId ApplicationStoppingException = new EventId(7, nameof(ApplicationStoppingException));
17public static readonly EventId ApplicationStoppedException = new EventId(8, nameof(ApplicationStoppedException));
18public static readonly EventId BackgroundServiceFaulted = new EventId(9, nameof(BackgroundServiceFaulted));
19public static readonly EventId BackgroundServiceStoppingHost = new EventId(10, nameof(BackgroundServiceStoppingHost));
20public static readonly EventId HostedServiceStartupFaulted = new EventId(11, nameof(HostedServiceStartupFaulted));
Microsoft.Extensions.Http (14)
Logging\LogHelper.cs (10)
16public static readonly EventId RequestStart = new EventId(100, "RequestStart");
17public static readonly EventId RequestEnd = new EventId(101, "RequestEnd");
19public static readonly EventId RequestHeader = new EventId(102, "RequestHeader");
20public static readonly EventId ResponseHeader = new EventId(103, "ResponseHeader");
22public static readonly EventId RequestFailed = new EventId(104, "RequestFailed");
24public static readonly EventId PipelineStart = new EventId(100, "RequestPipelineStart");
25public static readonly EventId PipelineEnd = new EventId(101, "RequestPipelineEnd");
27public static readonly EventId RequestPipelineRequestHeader = new EventId(102, "RequestPipelineRequestHeader");
28public static readonly EventId RequestPipelineResponseHeader = new EventId(103, "RequestPipelineResponseHeader");
30public static readonly EventId PipelineFailed = new EventId(104, "RequestPipelineFailed");
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
Microsoft.Extensions.Identity.Core (15)
LoggerEventIds.cs (15)
10public static readonly EventId RoleValidationFailed = new EventId(0, "RoleValidationFailed");
11public static readonly EventId InvalidPassword = new EventId(0, "InvalidPassword");
12public static readonly EventId UserAlreadyHasPassword = new EventId(1, "UserAlreadyHasPassword");
13public static readonly EventId ChangePasswordFailed = new EventId(2, "ChangePasswordFailed");
14public static readonly EventId AddLoginFailed = new EventId(4, "AddLoginFailed");
15public static readonly EventId UserAlreadyInRole = new EventId(5, "UserAlreadyInRole");
16public static readonly EventId UserNotInRole = new EventId(6, "UserNotInRole");
17public static readonly EventId PhoneNumberChanged = new EventId(7, "PhoneNumberChanged");
18public static readonly EventId VerifyUserTokenFailed = new EventId(9, "VerifyUserTokenFailed");
19public static readonly EventId VerifyTwoFactorTokenFailed = new EventId(10, "VerifyTwoFactorTokenFailed");
20public static readonly EventId LockoutFailed = new EventId(11, "LockoutFailed");
21public static readonly EventId UserLockedOut = new EventId(12, "UserLockedOut");
22public static readonly EventId UserValidationFailed = new EventId(13, "UserValidationFailed");
23public static readonly EventId PasswordValidationFailed = new EventId(14, "PasswordValidationFailed");
24public static readonly EventId GetSecurityStampFailed = new EventId(15, "GetSecurityStampFailed");
Microsoft.Extensions.Logging (2)
Logger.cs (2)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
52static void LoggerLog(LogLevel logLevel, EventId eventId, ILogger logger, Exception? exception, Func<TState, Exception?, string> formatter, ref List<Exception>? exceptions, in TState state)
Microsoft.Extensions.Logging.Abstractions (51)
LoggerExtensions.cs (14)
30public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
47public static void LogDebug(this ILogger logger, EventId eventId, string? message, params object?[] args)
100public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
117public static void LogTrace(this ILogger logger, EventId eventId, string? message, params object?[] args)
170public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
187public static void LogInformation(this ILogger logger, EventId eventId, string? message, params object?[] args)
240public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
257public static void LogWarning(this ILogger logger, EventId eventId, string? message, params object?[] args)
310public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
327public static void LogError(this ILogger logger, EventId eventId, string? message, params object?[] args)
380public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
397public static void LogCritical(this ILogger logger, EventId eventId, string? message, params object?[] args)
455public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args)
482public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string? message, params object?[] args)
LoggerMessage.cs (14)
130public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString)
141public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
172public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString)
184public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
216public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString)
229public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
262public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString)
276public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
310public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString)
325public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
360public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString)
376public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
412public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString)
429public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLogger.cs (2)
31public void Log<TState>(DateTimeOffset timestamp, LogLevel logLevel, EventId _, TState state, Exception exception, Func<TState, Exception, string> formatter)
70public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.ML (8)
Microsoft.Extensions.Telemetry (11)
Logging\ExtendedLogger.cs (3)
52public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
216private void ModernPath(LogLevel logLevel, EventId eventId, LoggerMessageState msgState, Exception? exception, Func<LoggerMessageState, Exception?, string> formatter)
362private void LegacyPath<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Sampling\LogSamplingRuleSelector.cs (3)
17private readonly ConcurrentDictionary<(string, LogLevel, EventId), T?> _ruleCache = new();
19public static bool IsBetter(T rule, T? current, string category, LogLevel logLevel, EventId eventId)
110public T? Select(IList<T> rules, string category, LogLevel logLevel, EventId eventId)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (4)
Logging\ExtendedLoggerFactoryTests.cs (2)
569public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
607public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Gen.Logging.Generated.Tests (4)
Microsoft.Maui (1)
Shared (6)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)