333 references to EventId
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.");