5267 references to LogLevel
aspire (48)
Backchannel\ExtensionBackchannel.cs (3)
41Task LogMessageAsync(LogLevel logLevel, string message, CancellationToken cancellationToken); 581public async Task LogMessageAsync(LogLevel logLevel, string message, CancellationToken cancellationToken) 583if (logLevel == LogLevel.None)
Certificates\CertificateGeneration\CertificateManager.cs (1)
1100public bool IsEnabled() => _logger.IsEnabled(LogLevel.Debug);
Commands\AgentMcpCommand.cs (1)
226if (_logger.IsEnabled(LogLevel.Debug))
Commands\RootCommand.cs (1)
32public static readonly Option<LogLevel?> DebugLevelOption = new("--log-level", "-l")
Commands\RunCommand.cs (4)
538if (entry.LogLevel is not LogLevel.Trace and not LogLevel.Debug) 541extensionInteractionService.WriteDebugSessionMessage(entry.Message, entry.LogLevel is not LogLevel.Error and not LogLevel.Critical, "\x1b[2m");
Diagnostics\FileLoggerProvider.cs (11)
174internal void WriteLog(DateTimeOffset timestamp, LogLevel level, string category, string message, Exception? exception = null) 186internal static string GetLogLevelString(LogLevel logLevel) => logLevel switch 188LogLevel.Trace => "TRCE", 189LogLevel.Debug => "DBUG", 190LogLevel.Information => "INFO", 191LogLevel.Warning => "WARN", 192LogLevel.Error => "FAIL", 193LogLevel.Critical => "CRIT", 232public bool IsEnabled(LogLevel logLevel) => logLevel != LogLevel.None && !s_suppressedCategories.Contains(categoryName); 236public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Interaction\ExtensionInteractionService.cs (4)
18void LogMessage(LogLevel logLevel, string message); 398var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.LogMessageAsync(LogLevel.Information, markdown, _cancellationToken)); 406var result = _extensionTaskChannel.Writer.TryWrite(() => Backchannel.LogMessageAsync(LogLevel.Information, markup.RemoveSpectreFormatting(), _cancellationToken)); 426public void LogMessage(LogLevel logLevel, string message)
Interaction\SpectreConsoleLoggerProvider.cs (10)
34public bool IsEnabled(LogLevel logLevel) => 35logLevel >= LogLevel.Debug && 36(categoryName.StartsWith("Aspire.Cli", StringComparison.Ordinal) || logLevel >= LogLevel.Warning); 40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 67private static string GetLogLevelString(LogLevel logLevel) => logLevel switch 69LogLevel.Debug => "dbug", 70LogLevel.Information => "info", 71LogLevel.Warning => "warn", 72LogLevel.Error => "fail", 73LogLevel.Critical => "crit",
NuGet\BundleNuGetPackageCache.cs (1)
154if (_logger.IsEnabled(LogLevel.Debug))
NuGet\BundleNuGetService.cs (2)
124if (_logger.IsEnabled(LogLevel.Debug)) 164if (_logger.IsEnabled(LogLevel.Debug))
Program.cs (7)
68internal record CliLoggingOptions(LogLevel? ConsoleLogLevel, bool DebugMode, string LogsDirectory, string LogFilePath); 95LogLevel? logLevel = null; 108if (Enum.TryParse<LogLevel>(args[i + 1], ignoreCase: true, out var parsedLevel)) 119logLevel = LogLevel.Debug; 218builder.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 235consoleLogOptions.LogToStandardErrorThreshold = LogLevel.Trace;
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
604public required LogLevel LogLevel { get; set; }
Utils\OutputCollector.cs (2)
63_fileLogger?.WriteLog(DateTimeOffset.UtcNow, stream == OutputLineStream.StdErr ? LogLevel.Error : LogLevel.Information, _category, line);
Aspire.Cli.Tests (42)
Commands\RunCommandTests.cs (4)
266LogLevel = LogLevel.Information, 1514LogLevel = LogLevel.Information, 1522LogLevel = LogLevel.Warning, 1530LogLevel = LogLevel.Error,
Interaction\SpectreConsoleLoggerProviderTests.cs (6)
35Assert.True(aspireLogger.IsEnabled(LogLevel.Debug)); 36Assert.True(aspireLogger.IsEnabled(LogLevel.Information)); 37Assert.True(aspireLogger.IsEnabled(LogLevel.Warning)); 39Assert.False(systemLogger.IsEnabled(LogLevel.Debug)); 40Assert.False(systemLogger.IsEnabled(LogLevel.Information)); 41Assert.True(systemLogger.IsEnabled(LogLevel.Warning)); // Warnings and above are allowed for non-Aspire categories
Projects\AppHostServerProjectTests.cs (1)
255builder.SetMinimumLevel(LogLevel.Debug);
Projects\ExtensionGuestLauncherTests.cs (1)
149public void LogMessage(Microsoft.Extensions.Logging.LogLevel logLevel, string message) => throw new NotImplementedException();
Telemetry\AspireCliTelemetryTests.cs (3)
80Assert.Equal(LogLevel.Error, logRecord.Level); 126Assert.Equal(LogLevel.Error, logRecord.Level); 182Assert.Equal(LogLevel.Error, logRecord.Level);
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
TestServices\TestExtensionBackchannel.cs (2)
66public Func<LogLevel, string, Task>? LogMessageAsyncCallback { get; set; } 219public Task LogMessageAsync(LogLevel logLevel, string message, CancellationToken cancellationToken)
TestServices\TestExtensionInteractionService.cs (2)
191public Action<LogLevel, string>? LogMessageCallback { get; set; } 193public void LogMessage(LogLevel logLevel, string message)
Utils\CliTestHelper.cs (1)
79services.AddLogging(b => b.SetMinimumLevel(LogLevel.Trace)).AddXunitLogging(outputHelper);
Aspire.Confluent.Kafka (3)
AspireKafkaConsumerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
AspireKafkaProducerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
MetricsService.cs (1)
80[LoggerMessage(LogLevel.Warning, EventId = 1, Message = "Invalid statistics json payload received: '{json}'")]
Aspire.Dashboard (76)
Api\TelemetryApiService.cs (6)
227if (!string.IsNullOrEmpty(severity) && Enum.TryParse<LogLevel>(severity, ignoreCase: true, out var logLevel)) 230if (logLevel != LogLevel.Trace) 356if (!string.IsNullOrEmpty(severity) && Enum.TryParse<LogLevel>(severity, ignoreCase: true, out var parsedLevel)) 359if (parsedLevel != LogLevel.Trace)
Components\Controls\LogLevelSelect.razor.cs (3)
12public required List<SelectViewModel<LogLevel?>> LogLevels { get; set; } 15public required SelectViewModel<LogLevel?> LogLevel { get; set; } 18public EventCallback<SelectViewModel<LogLevel?>> LogLevelChanged { get; set; }
Components\Pages\StructuredLogs.razor.cs (18)
43private List<SelectViewModel<LogLevel?>> _logLevels = default!; 205_logLevels = new List<SelectViewModel<LogLevel?>> 207new SelectViewModel<LogLevel?> { Id = null, Name = ControlsStringsLoc[nameof(Dashboard.Resources.ControlsStrings.LabelAll)] }, 208new SelectViewModel<LogLevel?> { Id = LogLevel.Trace, Name = "Trace" }, 209new SelectViewModel<LogLevel?> { Id = LogLevel.Debug, Name = "Debug" }, 210new SelectViewModel<LogLevel?> { Id = LogLevel.Information, Name = "Information" }, 211new SelectViewModel<LogLevel?> { Id = LogLevel.Warning, Name = "Warning" }, 212new SelectViewModel<LogLevel?> { Id = LogLevel.Error, Name = "Error" }, 213new SelectViewModel<LogLevel?> { Id = LogLevel.Critical, Name = "Critical" }, 515if (LogLevelText is not null && Enum.TryParse<LogLevel>(LogLevelText, ignoreCase: true, out var logLevel)) 612public SelectViewModel<LogLevel?> SelectedLogLevel { get; set; } = default!;
DashboardWebApplication.cs (10)
143builder.Logging.SetMinimumLevel(LogLevel.Debug); 144builder.Logging.AddFilter("Aspire.Dashboard", LogLevel.Debug); 148builder.Logging.AddFilter("Grpc", LogLevel.Information); 149builder.Logging.AddFilter("Aspire.Dashboard.Authentication", LogLevel.Information); 150builder.Logging.AddFilter("Aspire.Dashboard.Otlp", LogLevel.Information); 151builder.Logging.AddFilter("Microsoft", LogLevel.Information); 152builder.Logging.AddFilter("Microsoft.AspNetCore.Cors", LogLevel.Warning); 153builder.Logging.AddFilter("Microsoft.AspNetCore.Hosting.Diagnostics", LogLevel.Warning); 154builder.Logging.AddFilter("Microsoft.AspNetCore.Routing.EndpointMiddleware", LogLevel.Warning); 155builder.Logging.AddFilter("Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware", LogLevel.Warning);
Model\Otlp\TelemetryFilter.cs (2)
124if (Enum.TryParse<LogLevel>(Value, ignoreCase: true, out var value))
Model\StructuredLogsViewModel.cs (5)
24private LogLevel? _logLevel; 96public LogLevel? LogLevel { get => _logLevel; set => SetValue(ref _logLevel, value); } 124_currentDataHasErrors = logs.Items.Any(i => i.Severity >= Microsoft.Extensions.Logging.LogLevel.Error); 138if (_logLevel != null && _logLevel != Microsoft.Extensions.Logging.LogLevel.Trace) 153filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = Microsoft.Extensions.Logging.LogLevel.Error.ToString() });
Otlp\Model\OtlpLogEntry.cs (30)
19public LogLevel Severity { get; } 30public bool IsError => Severity is LogLevel.Error or LogLevel.Critical; 31public bool IsWarning => Severity is LogLevel.Warning; 97private static LogLevel MapSeverity(SeverityNumberProto severityNumber) => severityNumber switch 99SeverityNumberProto.Trace => LogLevel.Trace, 100SeverityNumberProto.Trace2 => LogLevel.Trace, 101SeverityNumberProto.Trace3 => LogLevel.Trace, 102SeverityNumberProto.Trace4 => LogLevel.Trace, 103SeverityNumberProto.Debug => LogLevel.Debug, 104SeverityNumberProto.Debug2 => LogLevel.Debug, 105SeverityNumberProto.Debug3 => LogLevel.Debug, 106SeverityNumberProto.Debug4 => LogLevel.Debug, 107SeverityNumberProto.Info => LogLevel.Information, 108SeverityNumberProto.Info2 => LogLevel.Information, 109SeverityNumberProto.Info3 => LogLevel.Information, 110SeverityNumberProto.Info4 => LogLevel.Information, 111SeverityNumberProto.Warn => LogLevel.Warning, 112SeverityNumberProto.Warn2 => LogLevel.Warning, 113SeverityNumberProto.Warn3 => LogLevel.Warning, 114SeverityNumberProto.Warn4 => LogLevel.Warning, 115SeverityNumberProto.Error => LogLevel.Error, 116SeverityNumberProto.Error2 => LogLevel.Error, 117SeverityNumberProto.Error3 => LogLevel.Error, 118SeverityNumberProto.Error4 => LogLevel.Error, 119SeverityNumberProto.Fatal => LogLevel.Critical, 120SeverityNumberProto.Fatal2 => LogLevel.Critical, 121SeverityNumberProto.Fatal3 => LogLevel.Critical, 122SeverityNumberProto.Fatal4 => LogLevel.Critical, 123_ => LogLevel.None
Telemetry\TelemetryLoggerProvider.cs (2)
42public bool IsEnabled(LogLevel logLevel) => true; 44public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Dashboard.Components.Tests (24)
Shared\IntegrationTestHelpers.cs (2)
16builder.AddXunit(testOutputHelper, LogLevel.Trace, DateTimeOffset.UtcNow); 17builder.SetMinimumLevel(LogLevel.Trace);
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
Aspire.Dashboard.Tests (64)
Integration\FrontendBrowserTokenAuthTests.cs (4)
170var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 207Assert.Equal(LogLevel.Warning, w.LogLevel); 212Assert.Equal(LogLevel.Warning, w.LogLevel); 217Assert.Equal(LogLevel.Warning, w.LogLevel);
Integration\IntegrationTestHelpers.cs (3)
30builder.AddXunit(testOutputHelper, LogLevel.Trace, DateTimeOffset.UtcNow); 31builder.SetMinimumLevel(LogLevel.Trace); 148builder.SetMinimumLevel(LogLevel.Trace);
Integration\OtlpHttpJsonTests.cs (2)
503Assert.Equal(LogLevel.Information, log.Severity); 579Assert.Equal(LogLevel.Information, log.Severity);
Integration\StartupTests.cs (23)
471if (w.LogLevel != LogLevel.Warning) 623Assert.Single(options.Value.Rules, r => r.CategoryName is null && r.LogLevel == LogLevel.Trace); 624Assert.Single(options.Value.Rules, r => r.CategoryName == "Grpc" && r.LogLevel == LogLevel.Trace); 625Assert.Single(options.Value.Rules, r => r.CategoryName == "Microsoft.Hosting.Lifetime" && r.LogLevel == LogLevel.Trace); 641["Default"] = nameof(LogLevel.Trace), 642["Grpc"] = nameof(LogLevel.Trace), 643["Microsoft.Hosting.Lifetime"] = nameof(LogLevel.Trace) 664Assert.Single(options.Value.Rules, r => r.CategoryName is null && r.LogLevel == LogLevel.Trace); 665Assert.Single(options.Value.Rules, r => r.CategoryName == "Grpc" && r.LogLevel == LogLevel.Trace); 666Assert.Single(options.Value.Rules, r => r.CategoryName == "Microsoft.Hosting.Lifetime" && r.LogLevel == LogLevel.Trace); 685var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 722Assert.Equal(LogLevel.Warning, w.LogLevel); 727Assert.Equal(LogLevel.Warning, w.LogLevel); 732Assert.Equal(LogLevel.Warning, w.LogLevel); 753var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 772Assert.Equal(LogLevel.Warning, w.LogLevel); 777Assert.Equal(LogLevel.Warning, w.LogLevel); 797var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning).ToList(); 837.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 900var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 939Assert.Equal(LogLevel.Warning, w.LogLevel); 944Assert.Equal(LogLevel.Warning, w.LogLevel); 949Assert.Equal(LogLevel.Warning, w.LogLevel);
Model\IconResolverTests.cs (1)
61Assert.Equal(LogLevel.Warning, write.LogLevel);
Model\TelemetryImportServiceTests.cs (1)
313Assert.Equal(Microsoft.Extensions.Logging.LogLevel.Warning, importedLogs.Items[0].Severity);
Telemetry\DashboardTelemetryServiceTests.cs (1)
158Assert.False(testSink.Writes.Any(w => w.LogLevel >= LogLevel.Warning), "Test ran without any warnings or errors logged.");
Telemetry\TelemetryLoggerProviderTests.cs (3)
32testLogger.Log(LogLevel.Error, TelemetryLoggerProvider.CircuitUnhandledExceptionEventId, "Test message"); 41circuitHostLogger.Log(LogLevel.Error, TelemetryLoggerProvider.CircuitUnhandledExceptionEventId, "Test message"); 45circuitHostLogger.Log(LogLevel.Error, TelemetryLoggerProvider.CircuitUnhandledExceptionEventId, new InvalidOperationException("Exception message"), "Test message");
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
430b.SetMinimumLevel(LogLevel.Debug); 475b.SetMinimumLevel(LogLevel.Debug);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (2)
180b.SetMinimumLevel(LogLevel.Trace); 851Value = LogLevel.Error.ToString(),
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
Aspire.Hosting (101)
ApplicationModel\ResourceLoggerService.cs (5)
113public bool IsEnabled(LogLevel logLevel) 119public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 590bool ILogger.IsEnabled(LogLevel logLevel) => true; 592public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 603var isErrorMessage = logLevel >= LogLevel.Error;
ApplicationModel\ResourceNotificationService.cs (3)
123if (_logger.IsEnabled(LogLevel.Debug)) 671if (_logger.IsEnabled(LogLevel.Debug) && newState.State?.Text is { Length: > 0 } newStateText && !string.IsNullOrWhiteSpace(newStateText)) 686if (_logger.IsEnabled(LogLevel.Trace))
Ats\LoggingExports.cs (8)
119internal static LogLevel ParseLogLevel(string level, bool throwOnUnknown = false) 125"trace" => LogLevel.Trace, 126"debug" => LogLevel.Debug, 127"information" or "info" => LogLevel.Information, 128"warning" or "warn" => LogLevel.Warning, 129"error" => LogLevel.Error, 130"critical" => LogLevel.Critical, 132_ => LogLevel.Information
Ats\PipelineExports.cs (1)
167private static LogLevel ParseLogLevel(string level)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
795if (logger.IsEnabled(LogLevel.Debug)) 802if (logger.IsEnabled(LogLevel.Debug))
Backchannel\BackchannelDataTypes.cs (1)
604public required LogLevel LogLevel { get; set; }
Backchannel\BackchannelLoggerProvider.cs (2)
86public bool IsEnabled(LogLevel logLevel) 91public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
101if (logger.IsEnabled(LogLevel.Warning))
Dashboard\DashboardEventHandlers.cs (7)
848if (defaultDashboardLogger.IsEnabled(LogLevel.Debug)) 854var level = logLine.IsErrorMessage ? LogLevel.Error : LogLevel.Information; 875if (defaultDashboardLogger.IsEnabled(LogLevel.Debug)) 958[JsonConverter(typeof(JsonStringEnumConverter<LogLevel>))] 959public LogLevel LogLevel { get; set; }
Dashboard\DashboardServiceData.cs (1)
74if (logger.IsEnabled(LogLevel.Debug))
Dcp\DcpExecutor.cs (4)
514if (_logger.IsEnabled(LogLevel.Trace)) 521if (_logger.IsEnabled(LogLevel.Trace)) 541if (_logger.IsEnabled(LogLevel.Trace)) 717if (_logger.IsEnabled(LogLevel.Debug))
Dcp\DcpHost.cs (7)
358(ILogger, LogLevel, string message) GetLogInfo(ReadOnlySpan<byte> line) 360if (!DcpLogParser.TryParseDcpLog(line, out var parsedMessage, out var logLevel, out var category)) 363return (_logger, LogLevel.Debug, Encoding.UTF8.GetString(line)); 380var appHostLogLevel = logLevel == LogLevel.Trace ? LogLevel.Trace : LogLevel.Debug;
Dcp\DcpLogParser.cs (9)
24public static bool TryParseDcpLog(ReadOnlySpan<byte> line, out string message, out LogLevel logLevel, out string category) 27logLevel = LogLevel.Information; 74logLevel = LogLevel.Information; 78logLevel = LogLevel.Error; 82logLevel = LogLevel.Warning; 86logLevel = LogLevel.Debug; 90logLevel = LogLevel.Trace; 111public static bool TryParseDcpLog(string line, out string message, out LogLevel logLevel, out bool isErrorLevel) 115isErrorLevel = logLevel == LogLevel.Error;
DistributedApplicationBuilder.cs (13)
199_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 200_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 201_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 202_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 210_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 215_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 539"trace" => LogLevel.Trace, 540"debug" => LogLevel.Debug, 541"info" or "information" => LogLevel.Information, 542"warn" or "warning" => LogLevel.Warning, 543"error" => LogLevel.Error, 544"crit" or "critical" => LogLevel.Critical, 545_ => LogLevel.Information
Orchestrator\ApplicationOrchestrator.cs (17)
235if (_logger.IsEnabled(LogLevel.Trace)) 327if (_logger.IsEnabled(LogLevel.Trace)) 334if (_logger.IsEnabled(LogLevel.Trace)) 348if (_logger.IsEnabled(LogLevel.Trace)) 361if (_logger.IsEnabled(LogLevel.Trace)) 372if (_logger.IsEnabled(LogLevel.Trace)) 377if (_logger.IsEnabled(LogLevel.Trace)) 383if (_logger.IsEnabled(LogLevel.Trace)) 403if (_logger.IsEnabled(LogLevel.Trace)) 413if (_logger.IsEnabled(LogLevel.Trace)) 419if (_logger.IsEnabled(LogLevel.Trace)) 428if (_logger.IsEnabled(LogLevel.Trace)) 436if (_logger.IsEnabled(LogLevel.Trace)) 444if (_logger.IsEnabled(LogLevel.Trace)) 455if (_logger.IsEnabled(LogLevel.Trace)) 469if (_logger.IsEnabled(LogLevel.Trace)) 474if (_logger.IsEnabled(LogLevel.Trace))
Pipelines\DistributedApplicationPipeline.cs (1)
1059context.ReportingStep.Log(LogLevel.Information, sb.ToString());
Pipelines\IReportingStep.cs (3)
38void Log(LogLevel logLevel, string message, bool enableMarkdown); 45void Log(LogLevel logLevel, string message); 52void Log(LogLevel logLevel, MarkdownString message);
Pipelines\NullPipelineActivityReporter.cs (3)
51public void Log(LogLevel logLevel, string message, bool enableMarkdown) 57public void Log(LogLevel logLevel, string message) 62public void Log(LogLevel logLevel, MarkdownString message)
Pipelines\PipelineActivityReporter.cs (1)
162internal void Log(ReportingStep step, LogLevel logLevel, string message, bool enableMarkdown)
Pipelines\PipelineLoggerProvider.cs (2)
75public bool IsEnabled(LogLevel logLevel) => 79public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Pipelines\PipelineLoggingOptions.cs (2)
16public LogLevel MinimumLogLevel { get; set; } = LogLevel.Information;
Pipelines\ReportingStep.cs (3)
119public void Log(LogLevel logLevel, string message, bool enableMarkdown = true) 131public void Log(LogLevel logLevel, string message) 142public void Log(LogLevel logLevel, MarkdownString message)
ResourceLoggerForwarderService.cs (3)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Utils\LoggingUtils.cs (2)
16configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckName}.LogicalHandler", LogLevel.None); 17configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckName}.ClientHandler", LogLevel.None);
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppResource.cs (2)
56ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to [{endpoint}]({endpoint})")); 61ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to Azure Container Apps environment **{containerAppEnv.Name}**. No public endpoints were configured."));
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
202context.ReportingStep.Log(LogLevel.Error, error);
AzureAppServiceWebSiteResource.cs (1)
60ctx.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{targetResource.Name}** to [{endpoint}]({endpoint})"));
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (2)
226Assert.Equal(LogLevel.Error, log.Level); 283&& record.Level >= LogLevel.Error
Aspire.Hosting.Azure.Tests (7)
AzureAppServiceTests.cs (1)
116log.LogLevel == LogLevel.Error);
AzureDeployerTests.cs (2)
1212.Where(m => m.LogLevel >= LogLevel.Error) 1235.Where(m => m.LogLevel >= LogLevel.Error)
tests\Shared\TestPipelineActivityReporter.cs (4)
56public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = []; 198public void Log(LogLevel logLevel, string message, bool enableMarkdown) 207public void Log(LogLevel logLevel, string message) 216public void Log(LogLevel logLevel, MarkdownString message)
Aspire.Hosting.Docker (12)
DockerComposePublisherLoggerExtensions.cs (9)
16[LoggerMessage(LogLevel.Warning, "{ResourceName} with type '{ResourceType}' is not supported by this publisher")] 19[LoggerMessage(LogLevel.Information, "{Message}")] 22[LoggerMessage(LogLevel.Information, "Generating Compose output")] 25[LoggerMessage(LogLevel.Information, "No resources found in the model.")] 28[LoggerMessage(LogLevel.Debug, "Successfully generated Compose output in '{OutputPath}'")] 31[LoggerMessage(LogLevel.Warning, "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.")] 34[LoggerMessage(LogLevel.Warning, "Not in publishing mode. Skipping writing docker-compose.yaml output file.")] 37[LoggerMessage(LogLevel.Error, "Failed to copy referenced file '{FilePath}' to '{OutputPath}'")] 40[LoggerMessage(LogLevel.Warning, "Resource '{ResourceName}' has a bind mount with host-specific source path '{SourcePath}'. The source has been replaced with an environment variable placeholder '{Placeholder}' which may make the application less portable across different machines.")]
DockerComposeServiceResource.cs (3)
334context.ReportingStep.Log(LogLevel.Information, 349context.ReportingStep.Log(LogLevel.Information, new MarkdownString($"Successfully deployed **{TargetResource.Name}** to {endpointList}.")); 355context.ReportingStep.Log(LogLevel.Information,
Aspire.Hosting.Docker.Tests (5)
DockerComposeTests.cs (1)
272logging.SetMinimumLevel(LogLevel.Debug);
tests\Shared\TestPipelineActivityReporter.cs (4)
56public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = []; 198public void Log(LogLevel logLevel, string message, bool enableMarkdown) 207public void Log(LogLevel logLevel, string message) 216public void Log(LogLevel logLevel, MarkdownString message)
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (1)
45ctx.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{Name}** as Hosted Agent (version {version})", enableMarkdown: true);
HostedAgent\AzurePromptAgentResource.cs (1)
46ctx.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{Name}** as Prompt Agent (version {version})", enableMarkdown: true);
Aspire.Hosting.Kubernetes (7)
KubernetesPublisherLoggerExtensions.cs (7)
10[LoggerMessage(LogLevel.Warning, "{ResourceName} with type '{ResourceType}' is not supported by this publisher")] 13[LoggerMessage(LogLevel.Information, "{Message}")] 16[LoggerMessage(LogLevel.Information, "Generating Kubernetes output")] 19[LoggerMessage(LogLevel.Information, "No resources found in the model.")] 22[LoggerMessage(LogLevel.Information, "Successfully generated Kubernetes output in '{OutputPath}'")] 25[LoggerMessage(LogLevel.Warning, "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.")] 28[LoggerMessage(LogLevel.Warning, "Not in publishing mode. Skipping writing kubernetes manifests.")]
Aspire.Hosting.RemoteHost.Tests (2)
AtsExportsTests.cs (2)
60var result = LoggingExports.ParseLogLevel("verbose"); 62Assert.Equal(LogLevel.Information, result);
Aspire.Hosting.Testing.Tests (31)
ResourceLoggerForwarderServiceTests.cs (6)
136log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("1: 2000-12-29T20:59:59.0000000Z Test trace message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 137log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("2: 2000-12-29T20:59:59.0000000Z Test debug message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 138log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("3: 2000-12-29T20:59:59.0000000Z Test information message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 139log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("4: 2000-12-29T20:59:59.0000000Z Test warning message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 140log => { Assert.Equal(LogLevel.Error, log.Level); Assert.Equal("5: 2000-12-29T20:59:59.0000000Z Test error message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 141log => { Assert.Equal(LogLevel.Error, log.Level); Assert.Equal("6: 2000-12-29T20:59:59.0000000Z Test critical message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); });
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (3)
34builder.AddFilter("Aspire.Hosting", LogLevel.Trace); 36builder.AddFilter<ConsoleLoggerProvider>(null, LogLevel.None); 91builder.Logging.AddFilter<ConsoleLoggerProvider>(null, LogLevel.None);
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
Aspire.Hosting.Tests (140)
Backchannel\AuxiliaryBackchannelTests.cs (1)
599l.Level == LogLevel.Debug &&
Backchannel\BackchannelLoggerProviderTests.cs (3)
28Assert.Equal(LogLevel.Information, snapshot[0].LogLevel); 29Assert.Equal(LogLevel.Warning, snapshot[1].LogLevel); 30Assert.Equal(LogLevel.Error, snapshot[2].LogLevel);
Cli\CliOrphanDetectorTests.cs (1)
277builder.SetMinimumLevel(LogLevel.Debug);
Dashboard\DashboardLifecycleHookTests.cs (8)
30public async Task WatchDashboardLogs_WrittenToHostLoggerFactory(DateTime? timestamp, string logMessage, string expectedMessage, string expectedCategory, LogLevel expectedLevel) 36b.SetMinimumLevel(LogLevel.Trace); 206b.SetMinimumLevel(LogLevel.Information); 606LogLevel = LogLevel.Error, 619LogLevel.Error 627LogLevel.Error 632LogLevel = LogLevel.Critical, 646LogLevel.Critical
Dashboard\DashboardResourceTests.cs (10)
552[InlineData(LogLevel.Critical)] 553[InlineData(LogLevel.Error)] 554[InlineData(LogLevel.Warning)] 555[InlineData(LogLevel.Information)] 556[InlineData(LogLevel.Debug)] 557[InlineData(LogLevel.Trace)] 558public async Task DashboardLifecycleEventsWatchesLogs(LogLevel logLevel) 768public bool IsEnabled(LogLevel logLevel) => true; 770public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 783public LogLevel LogLevel { get; set; }
Dashboard\DashboardServiceTests.cs (6)
141builder.SetMinimumLevel(LogLevel.Trace); 223builder.SetMinimumLevel(LogLevel.Trace); 293builder.SetMinimumLevel(LogLevel.Trace); 340builder.SetMinimumLevel(LogLevel.Trace); 399builder.SetMinimumLevel(LogLevel.Trace); 436builder.SetMinimumLevel(LogLevel.Trace);
Dcp\DcpHostNotificationTests.cs (7)
163Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning && w.Message is not null && w.Message.Contains("aka.ms/aspire/devcerts", StringComparison.Ordinal)); 570Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 622Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 675Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 737Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 797Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 855Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning);
Dcp\DcpLogParserTests.cs (27)
21var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 26Assert.Equal(LogLevel.Information, logLevel); 38var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 43Assert.Equal(LogLevel.Error, logLevel); 55var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 60Assert.Equal(LogLevel.Warning, logLevel); 72var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 77Assert.Equal(LogLevel.Debug, logLevel); 89var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 94Assert.Equal(LogLevel.Trace, logLevel); 106var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out _); 111Assert.Equal(LogLevel.Information, logLevel); 122var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out _); 127Assert.Equal(LogLevel.Information, logLevel); 165var result = DcpLogParser.TryParseDcpLog(logLine, out var message, out var logLevel, out var isErrorLevel); 170Assert.Equal(LogLevel.Error, logLevel); 181var result = DcpLogParser.TryParseDcpLog(logLine, out var message, out var logLevel, out var isErrorLevel); 186Assert.Equal(LogLevel.Information, logLevel); 211var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category); 216Assert.Equal(LogLevel.Information, logLevel); 221[InlineData("error", LogLevel.Error)] 222[InlineData("warning", LogLevel.Warning)] 223[InlineData("info", LogLevel.Information)] 224[InlineData("debug", LogLevel.Debug)] 225[InlineData("trace", LogLevel.Trace)] 226public void TryParseDcpLog_ParsesAllLogLevels(string dcpLogLevel, LogLevel expectedLogLevel) 233var result = DcpLogParser.TryParseDcpLog(bytes.AsSpan(), out var message, out var logLevel, out var category);
PersistentContainerWarningTests.cs (3)
37Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning && w.Message?.Contains("my-container") == true); 61Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 83Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning);
Pipelines\DistributedApplicationPipelineTests.cs (7)
1159Assert.Contains(reporter.LoggedMessages, log => log.Message == "Test log message from pipeline step" && log.LogLevel == LogLevel.Information); 1215Assert.Contains(reporter.LoggedMessages, log => log.Message == "Message from step 1" && log.LogLevel == LogLevel.Information); 1216Assert.Contains(reporter.LoggedMessages, log => log.Message == "Message from step 2" && log.LogLevel == LogLevel.Information); 1255Assert.Contains(reporter.LoggedMessages, log => log.Message == "About to fail" && log.LogLevel == LogLevel.Information); 1316Assert.Contains(reporter.LoggedMessages, log => log.Message.Contains("Executing step 1") && log.LogLevel == LogLevel.Information); 1317Assert.Contains(reporter.LoggedMessages, log => log.Message.Contains("Executing step 2") && log.LogLevel == LogLevel.Information); 1318Assert.Contains(reporter.LoggedMessages, log => log.Message.Contains("Executing step 3") && log.LogLevel == LogLevel.Information);
Pipelines\PipelineLoggerProviderTests.cs (6)
115Assert.Equal(LogLevel.Information, logEntry1.Level); 120Assert.Equal(LogLevel.Information, logEntry2.Level); 127public List<(LogLevel Level, string Message)> LoggedMessages { get; } = []; 157public void Log(LogLevel logLevel, string message, bool enableMarkdown = false) 163public void Log(LogLevel logLevel, string message) 168public void Log(LogLevel logLevel, MarkdownString message)
Publishing\PipelineActivityReporterTests.cs (3)
954var logLevel = LogLevel.Information; 994step.Log(LogLevel.Information, "Test log");
Publishing\ResourceContainerImageManagerTests.cs (6)
111Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error && 150Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error && 248Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error && 288Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error && 435Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error && 667Assert.DoesNotContain(logs, log => log.Level >= LogLevel.Error &&
ResourceNotificationTests.cs (23)
369Assert.Single(logs, l => l.Level == LogLevel.Debug); 370Assert.Contains(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state: SomeState")); 379Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug); 380Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state: SomeState")); 389Assert.Single(logs, l => l.Level == LogLevel.Debug); 390Assert.Contains(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state: SomeState -> NewState")); 399Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug); 400Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state:")); 409Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug); 410Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state:")); 419Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug); 420Assert.DoesNotContain(logs, l => l.Level == LogLevel.Debug && l.Message.Contains("Resource resource1/resource1 changed state:")); 439Assert.Single(logs, l => l.Level == LogLevel.Debug); 440Assert.Equal(3, logs.Where(l => l.Level == LogLevel.Trace).Count()); 441Assert.Contains(logs, l => l.Level == LogLevel.Trace && l.Message.Contains("Resource resource1/resource1 update published:") && l.Message.Contains($"CreationTimeStamp = {createdDate:s}")); 442Assert.Contains(logs, l => l.Level == LogLevel.Trace && l.Message.Contains("Resource resource1/resource1 update published:") && l.Message.Contains("State = { Text = SomeState")); 443Assert.Contains(logs, l => l.Level == LogLevel.Trace && l.Message.Contains("Resource resource1/resource1 update published:") && l.Message.Contains("ExitCode = 0")); 653Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Waiting for resource 'myResource' to enter the 'Healthy' state.")); 654Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Waiting for resource ready to execute for 'myResource'.")); 655Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Finished waiting for resource 'myResource'.")); 718Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Waiting for resource 'myResource' to enter the 'Healthy' state.")); 719Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Waiting for resource ready to execute for 'myResource'.")); 720Assert.Contains(logRecords, log => log.Level == LogLevel.Debug && log.Message.Contains("Finished waiting for resource 'myResource'."));
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (3)
34builder.AddFilter("Aspire.Hosting", LogLevel.Trace); 36builder.AddFilter<ConsoleLoggerProvider>(null, LogLevel.None); 91builder.Logging.AddFilter<ConsoleLoggerProvider>(null, LogLevel.None);
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
tests\Shared\TestPipelineActivityReporter.cs (4)
56public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = []; 198public void Log(LogLevel logLevel, string message, bool enableMarkdown) 207public void Log(LogLevel logLevel, string message) 216public void Log(LogLevel logLevel, MarkdownString message)
Aspire.Playground.Tests (27)
Infrastructure\DistributedApplicationExtensions.cs (2)
141AssertDoesNotContain(appHostlogs, log => log.Level >= LogLevel.Error && log.Category != "Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService"); 142AssertDoesNotContain(resourceLogs, log => log.Category is { Length: > 0 } category && assertableResourceLogNames.Contains(category) && log.Level >= LogLevel.Error);
Infrastructure\DistributedApplicationTestFactory.cs (3)
43logging.SetMinimumLevel(LogLevel.Trace); 44logging.AddFilter("Aspire", LogLevel.Trace); 45logging.AddFilter(builder.Environment.ApplicationName, LogLevel.Trace);
tests\Shared\Logging\LogLevelAttribute.cs (2)
9public LogLevelAttribute(LogLevel logLevel) 14public LogLevel LogLevel { get; }
tests\Shared\Logging\TestLogger.cs (5)
11private readonly Func<LogLevel, bool> _filter; 18public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && _filter(logLevel);
tests\Shared\Logging\TestLoggerT.cs (2)
20public bool IsEnabled(LogLevel logLevel) 26LogLevel logLevel,
tests\Shared\Logging\WriteContext.cs (1)
8public LogLevel LogLevel { get; set; }
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (4)
18public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 24public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 36public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel) 42public static ILoggerFactory AddXunit(this ILoggerFactory loggerFactory, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
tests\Shared\Logging\XunitLoggerProvider.cs (8)
13private readonly LogLevel _minLevel; 17: this(output, LogLevel.Trace) 21public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 26public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 47private readonly LogLevel _minLogLevel; 51public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 114public bool IsEnabled(LogLevel logLevel)
Aspire.RabbitMQ.Client (8)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (8)
33var level = MapLevel(eventData.Level); 61private static LogLevel MapLevel(EventLevel level) => level switch 63EventLevel.Critical => LogLevel.Critical, 64EventLevel.Error => LogLevel.Error, 65EventLevel.Informational => LogLevel.Information, 66EventLevel.Verbose => LogLevel.Debug, 67EventLevel.Warning => LogLevel.Warning, 68EventLevel.LogAlways => LogLevel.Information,
Aspire.RabbitMQ.Client.Tests (9)
AspireRabbitMQLoggingTests.cs (9)
74Assert.Contains(logs, l => l.Level == LogLevel.Information && l.Message == "Performing automatic recovery"); 75Assert.Contains(logs, l => l.Level == LogLevel.Error && l.Message == "Connection recovery exception."); 95Assert.Equal(LogLevel.Information, logs[0].Level); 103Assert.Equal(LogLevel.Warning, logs[1].Level); 136Assert.Equal(LogLevel.Error, logs[0].Level); 182Assert.Equal(LogLevel.Error, logs[0].Level); 242public BlockingCollection<(LogLevel Level, string Message, object? State)> Logs { get; } = new(); 248public bool IsEnabled(LogLevel logLevel) => true; 250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.RabbitMQ.Client.v6.Tests (9)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (9)
74Assert.Contains(logs, l => l.Level == LogLevel.Information && l.Message == "Performing automatic recovery"); 75Assert.Contains(logs, l => l.Level == LogLevel.Error && l.Message == "Connection recovery exception."); 95Assert.Equal(LogLevel.Information, logs[0].Level); 103Assert.Equal(LogLevel.Warning, logs[1].Level); 136Assert.Equal(LogLevel.Error, logs[0].Level); 182Assert.Equal(LogLevel.Error, logs[0].Level); 242public BlockingCollection<(LogLevel Level, string Message, object? State)> Logs { get; } = new(); 248public bool IsEnabled(LogLevel logLevel) => true; 250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
dotnet (10)
Commands\New\NewCommandParser.cs (1)
94LogLevel logLevel)
Extensions\CommonOptionsExtensions.cs (9)
71/// Converts <see cref="VerbosityOptions"/> to Microsoft.Extensions.Logging.<see cref="LogLevel"/>. 73public static LogLevel ToLogLevel(this VerbosityOptions verbosityOptions) 75LogLevel logLevel = LogLevel.Information; 80logLevel = LogLevel.Debug; 84logLevel = LogLevel.Trace; 88logLevel = LogLevel.Error; 92logLevel = LogLevel.Information; 96logLevel = LogLevel.None;
dotnet-format (43)
Analyzers\AnalyzerFormatter.cs (2)
174static void LogDiagnosticLocations(Solution solution, IEnumerable<Diagnostic> diagnostics, bool saveFormattedFiles, bool changesAreErrors, ILogger logger, LogLevel logLevel, List<FormattedFile> formattedFiles) 187if (!saveFormattedFiles || logLevel == LogLevel.Debug)
CodeFormatter.cs (2)
30var logWorkspaceWarnings = formatOptions.LogLevel == LogLevel.Trace; 47if (formatOptions.LogLevel <= LogLevel.Debug)
Commands\FormatAnalyzersCommand.cs (1)
34var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\FormatCommandCommon.cs (10)
138public static ILogger<Program> SetupLogging(LogLevel minimalLogLevel, LogLevel minimalErrorLevel) 165formatOptions = formatOptions with { LogLevel = LogLevel.Warning }; 284internal static LogLevel GetLogLevel(string? verbosity) 288"q" or "quiet" => LogLevel.Error, 289"m" or "minimal" => LogLevel.Warning, 290"n" or "normal" => LogLevel.Information, 291"d" or "detailed" => LogLevel.Debug, 292"diag" or "diagnostic" => LogLevel.Trace, 293_ => LogLevel.Information,
Commands\FormatStyleCommand.cs (1)
34var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\FormatWhitespaceCommand.cs (1)
65var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\RootFormatCommand.cs (1)
37var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
FormatOptions.cs (2)
14LogLevel LogLevel, 32LogLevel: LogLevel.Warning,
Formatters\DocumentFormatter.cs (1)
177if (!formatOptions.SaveFormattedFiles || formatOptions.LogLevel == LogLevel.Debug)
Logging\SimpleConsoleLogger.cs (16)
17private readonly LogLevel _minimalLogLevel; 18private readonly LogLevel _minimalErrorLevel; 20private static ImmutableDictionary<LogLevel, ConsoleColor> LogLevelColorMap => new Dictionary<LogLevel, ConsoleColor> 22[LogLevel.Critical] = ConsoleColor.Red, 23[LogLevel.Error] = ConsoleColor.Red, 24[LogLevel.Warning] = ConsoleColor.Yellow, 25[LogLevel.Information] = ConsoleColor.White, 26[LogLevel.Debug] = ConsoleColor.Gray, 27[LogLevel.Trace] = ConsoleColor.Gray, 28[LogLevel.None] = ConsoleColor.White, 31public SimpleConsoleLogger(LogLevel minimalLogLevel, LogLevel minimalErrorLevel) 37public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 53public bool IsEnabled(LogLevel logLevel) 63private void Log(string message, LogLevel logLevel, bool logToErrorStream)
Logging\SimpleConsoleLoggerFactoryExtensions.cs (2)
10public static ILoggerFactory AddSimpleConsole(this ILoggerFactory factory, LogLevel minimalLogLevel, LogLevel minimalErrorLevel)
Logging\SimpleConsoleLoggerProvider.cs (4)
10private readonly LogLevel _minimalLogLevel; 11private readonly LogLevel _minimalErrorLevel; 13public SimpleConsoleLoggerProvider(LogLevel minimalLogLevel, LogLevel minimalErrorLevel)
dotnet-watch (5)
CommandLine\CommandLineOptions.cs (4)
143var logLevel = parseResult.GetValue(definition.VerboseOption) 144? LogLevel.Debug 146? LogLevel.Warning 147: LogLevel.Information;
Program.cs (1)
75var parsingLoggerFactory = new LoggerFactory(reporter, environmentOptions.CliLogLevel ?? LogLevel.Information);
EventHubsConsumer (1)
Consumer.cs (1)
24void LogString(string message) => logger.Log(LogLevel.Information, 0, message, null, (s, _) => s);
Microsoft.Arcade.Common (16)
CompactConsoleLoggerFormatter.cs (16)
46_messagePadding = new string(' ', GetLogLevelString(LogLevel.Information).Length + LoglevelPadding.Length + (_options.TimestampFormat?.Length ?? 0)); 63LogLevel logLevel = logEntry.LogLevel; 104private static string GetLogLevelString(LogLevel logLevel) => logLevel switch 106LogLevel.Trace => "trce", 107LogLevel.Debug => "dbug", 108LogLevel.Information => "info", 109LogLevel.Warning => "warn", 110LogLevel.Error => "fail", 111LogLevel.Critical => "crit", 115private (ConsoleColor? Foreground, ConsoleColor? Background) GetLogLevelConsoleColors(LogLevel logLevel) 126LogLevel.Trace => (ConsoleColor.Gray, ConsoleColor.Black), 127LogLevel.Debug => (ConsoleColor.Gray, ConsoleColor.Black), 128LogLevel.Information => (ConsoleColor.DarkGreen, ConsoleColor.Black), 129LogLevel.Warning => (ConsoleColor.Yellow, ConsoleColor.Black), 130LogLevel.Error => (ConsoleColor.Black, ConsoleColor.DarkRed), 131LogLevel.Critical => (ConsoleColor.White, ConsoleColor.DarkRed),
Microsoft.AspNetCore.Antiforgery (27)
_generated\0\LoggerMessage.g.cs (18)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "ValidationFailed"), "Antiforgery validation failed with message '{Message}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "Validated"), "Antiforgery successfully validated a request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "MissingCookieToken"), "The required antiforgery cookie '{CookieName}' is not present.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "MissingRequestToken"), "The required antiforgery request token was not provided in either form field '{FormFieldName}' or header '{HeaderName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "NewCookieToken"), "A new antiforgery cookie token was created.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ReusedCookieToken"), "An antiforgery cookie token was reused.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(7, "TokenDeserializeException"), "An exception was thrown while deserializing the token.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "ResponseCacheHeadersOverridenToNoCache"), "The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and 'no-cache' respectively to prevent caching of this response. Any response that uses antiforgery should not be cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "FailedToDeserialzeTokens"), "Failed to deserialize antiforgery tokens.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
Internal\AntiforgeryLoggerExtensions.cs (9)
10[LoggerMessage(1, LogLevel.Warning, "Antiforgery validation failed with message '{Message}'.", EventName = "ValidationFailed")] 13[LoggerMessage(2, LogLevel.Debug, "Antiforgery successfully validated a request.", EventName = "Validated")] 16[LoggerMessage(3, LogLevel.Warning, "The required antiforgery cookie '{CookieName}' is not present.", EventName = "MissingCookieToken")] 19[LoggerMessage(4, LogLevel.Warning, "The required antiforgery request token was not provided in either form field '{FormFieldName}' " 23[LoggerMessage(5, LogLevel.Debug, "A new antiforgery cookie token was created.", EventName = "NewCookieToken")] 26[LoggerMessage(6, LogLevel.Debug, "An antiforgery cookie token was reused.", EventName = "ReusedCookieToken")] 29[LoggerMessage(7, LogLevel.Error, "An exception was thrown while deserializing the token.", EventName = "TokenDeserializeException")] 32[LoggerMessage(8, LogLevel.Warning, "The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and " + 37[LoggerMessage(9, LogLevel.Debug, "Failed to deserialize antiforgery tokens.", EventName = "FailedToDeserialzeTokens")]
Microsoft.AspNetCore.Authentication (42)
_generated\0\LoggerMessage.g.cs (28)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "RemoteAuthenticationFailed"), "Error from RemoteAuthentication: {ErrorMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "SignInHandled"), "The SigningIn event returned Handled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "SignInSkipped"), "The SigningIn event returned Skipped.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(7, "AuthenticationSchemeNotAuthenticatedWithFailure"), "{AuthenticationScheme} was not authenticated. Failure message: {FailureMessage}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "AuthenticationSchemeAuthenticated"), "AuthenticationScheme: {AuthenticationScheme} was successfully authenticated.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "AuthenticationSchemeNotAuthenticated"), "AuthenticationScheme: {AuthenticationScheme} was not authenticated.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(12, "AuthenticationSchemeChallenged"), "AuthenticationScheme: {AuthenticationScheme} was challenged.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(13, "AuthenticationSchemeForbidden"), "AuthenticationScheme: {AuthenticationScheme} was forbidden.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(14, "CorrelationPropertyNotFound"), "{CorrelationProperty} state property not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(15, "CorrelationCookieNotFound"), "'{CorrelationCookieName}' cookie not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "UnexpectedCorrelationCookieValue"), "The correlation cookie value '{CorrelationCookieName}' did not match the expected value '{CorrelationCookieValue}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(17, "AccessDenied"), "Access was denied by the resource owner or by the remote server.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "AccessDeniedContextHandled"), "The AccessDenied event returned Handled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "AccessDeniedContextSkipped"), "The AccessDenied event returned Skipped.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggingExtensions.cs (14)
8[LoggerMessage(4, LogLevel.Information, "Error from RemoteAuthentication: {ErrorMessage}.", EventName = "RemoteAuthenticationFailed")] 11[LoggerMessage(5, LogLevel.Debug, "The SigningIn event returned Handled.", EventName = "SignInHandled")] 14[LoggerMessage(6, LogLevel.Debug, "The SigningIn event returned Skipped.", EventName = "SignInSkipped")] 17[LoggerMessage(7, LogLevel.Information, "{AuthenticationScheme} was not authenticated. Failure message: {FailureMessage}", EventName = "AuthenticationSchemeNotAuthenticatedWithFailure")] 20[LoggerMessage(8, LogLevel.Debug, "AuthenticationScheme: {AuthenticationScheme} was successfully authenticated.", EventName = "AuthenticationSchemeAuthenticated")] 23[LoggerMessage(9, LogLevel.Debug, "AuthenticationScheme: {AuthenticationScheme} was not authenticated.", EventName = "AuthenticationSchemeNotAuthenticated")] 26[LoggerMessage(12, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} was challenged.", EventName = "AuthenticationSchemeChallenged")] 29[LoggerMessage(13, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} was forbidden.", EventName = "AuthenticationSchemeForbidden")] 32[LoggerMessage(14, LogLevel.Warning, "{CorrelationProperty} state property not found.", EventName = "CorrelationPropertyNotFound")] 35[LoggerMessage(15, LogLevel.Warning, "'{CorrelationCookieName}' cookie not found.", EventName = "CorrelationCookieNotFound")] 38[LoggerMessage(16, LogLevel.Warning, "The correlation cookie value '{CorrelationCookieName}' did not match the expected value '{CorrelationCookieValue}'.", EventName = "UnexpectedCorrelationCookieValue")] 41[LoggerMessage(17, LogLevel.Information, "Access was denied by the resource owner or by the remote server.", EventName = "AccessDenied")] 44[LoggerMessage(18, LogLevel.Debug, "The AccessDenied event returned Handled.", EventName = "AccessDeniedContextHandled")] 47[LoggerMessage(19, LogLevel.Debug, "The AccessDenied event returned Skipped.", EventName = "AccessDeniedContextSkipped")]
Microsoft.AspNetCore.Authentication.BearerToken (3)
_generated\0\LoggerMessage.g.cs (2)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "AuthenticationSchemeSignedIn"), "AuthenticationScheme: {AuthenticationScheme} signed in.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
LoggingExtensions.cs (1)
8[LoggerMessage(1, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed in.", EventName = "AuthenticationSchemeSignedIn")]
Microsoft.AspNetCore.Authentication.Cookies (6)
_generated\0\LoggerMessage.g.cs (4)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "AuthenticationSchemeSignedIn"), "AuthenticationScheme: {AuthenticationScheme} signed in.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(11, "AuthenticationSchemeSignedOut"), "AuthenticationScheme: {AuthenticationScheme} signed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
LoggingExtensions.cs (2)
8[LoggerMessage(10, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed in.", EventName = "AuthenticationSchemeSignedIn")] 11[LoggerMessage(11, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed out.", EventName = "AuthenticationSchemeSignedOut")]
Microsoft.AspNetCore.Authentication.OAuth (3)
_generated\0\LoggerMessage.g.cs (2)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "HandleChallenge"), "HandleChallenge with Location: {Location}; and Set-Cookie: {Cookie}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggingExtensions.cs (1)
8[LoggerMessage(1, LogLevel.Debug, "HandleChallenge with Location: {Location}; and Set-Cookie: {Cookie}.", EventName = "HandleChallenge")]
Microsoft.AspNetCore.Authorization (6)
_generated\0\LoggerMessage.g.cs (4)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UserAuthorizationSucceeded"), "Authorization was successful.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "UserAuthorizationFailed"), "Authorization failed. {Reason}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
LoggingExtensions.cs (2)
11[LoggerMessage(1, LogLevel.Debug, "Authorization was successful.", EventName = "UserAuthorizationSucceeded")] 14[LoggerMessage(2, LogLevel.Information, "Authorization failed. {Reason}", EventName = "UserAuthorizationFailed")]
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationMiddleware.cs (1)
179if (authenticateResult != null && !authenticateResult.Succeeded && _logger is ILogger log && log.IsEnabled(LogLevel.Debug))
Microsoft.AspNetCore.Components (50)
_generated\0\LoggerMessage.g.cs (28)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "PersistingValueToState"), "Persisting value for storage key '{StorageKey}' of type '{PropertyType}' from component '{ComponentType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "SkippedPersistingNullValue"), "Skipped persisting null value for storage key '{StorageKey}' of type '{PropertyType}' from component '{ComponentType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RestoringValueFromState"), "Restoring value for storage key '{StorageKey}' of type '{PropertyType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NoValueToRestoreFromState"), "No value to restore for storage key '{StorageKey}' of type '{PropertyType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "RestoredValueFromPersistentState"), "Restored value from persistent state for storage key '{StorageKey}' of type '{PropertyType}' for component '{ComponentType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ValueNotFoundInPersistentState"), "Value not found in persistent state for storage key '{StorageKey}' of type '{PropertyType}' for component '{ComponentType}' for property '{PropertyName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 117global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, global::System.Type, int, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "InitializingChildComponent"), "Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentType})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 130global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "InitializingRootComponent"), "Initializing root component {ComponentId} ({ComponentType})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 143global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RenderingComponent"), "Rendering component {ComponentId} of type {ComponentType}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 156global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "DisposingComponent"), "Disposing component {ComponentId} of type {ComponentType}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 169global::Microsoft.Extensions.Logging.LoggerMessage.Define<ulong, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "HandlingEvent"), "Handling event {EventId} of type '{EventType}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 242global::Microsoft.Extensions.Logging.LogLevel.Debug, 259global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "DisplayingNotFound"), "Displaying NotFound because path '{Path}' with base URI '{BaseUri}' does not match any component route", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 268if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 275global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "NavigatingToComponent"), "Navigating to component {ComponentType} in response to path '{Path}' with base URI '{BaseUri}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 284if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 291global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NavigatingToExternalUri"), "Navigating to non-component URI '{ExternalUri}' in response to path '{Path}' with base URI '{BaseUri}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 300if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 307global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "DisplayingNotFoundOnRequest"), "Displaying contents of {displayedContentPath} on request", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 316if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 332global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestMatchedRoute"), "Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 341if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
PersistentState\PersistentValueProviderComponentSubscription.cs (6)
246[LoggerMessage(1, LogLevel.Debug, "Persisting value for storage key '{StorageKey}' of type '{PropertyType}' from component '{ComponentType}' for property '{PropertyName}'", EventName = "PersistingValueToState")] 249[LoggerMessage(2, LogLevel.Debug, "Skipped persisting null value for storage key '{StorageKey}' of type '{PropertyType}' from component '{ComponentType}' for property '{PropertyName}'", EventName = "SkippedPersistingNullValue")] 252[LoggerMessage(3, LogLevel.Debug, "Restoring value for storage key '{StorageKey}' of type '{PropertyType}' for property '{PropertyName}'", EventName = "RestoringValueFromState")] 255[LoggerMessage(4, LogLevel.Debug, "No value to restore for storage key '{StorageKey}' of type '{PropertyType}' for property '{PropertyName}'", EventName = "NoValueToRestoreFromState")] 258[LoggerMessage(5, LogLevel.Debug, "Restored value from persistent state for storage key '{StorageKey}' of type '{PropertyType}' for component '{ComponentType}' for property '{PropertyName}'", EventName = "RestoredValueFromPersistentState")] 261[LoggerMessage(6, LogLevel.Debug, "Value not found in persistent state for storage key '{StorageKey}' of type '{PropertyType}' for component '{ComponentType}' for property '{PropertyName}'", EventName = "ValueNotFoundInPersistentState")]
RenderTree\Renderer.Log.cs (11)
13[LoggerMessage(1, LogLevel.Debug, "Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentType})", EventName = "InitializingChildComponent", SkipEnabledCheck = true)] 16[LoggerMessage(2, LogLevel.Debug, "Initializing root component {ComponentId} ({ComponentType})", EventName = "InitializingRootComponent", SkipEnabledCheck = true)] 21if (logger.IsEnabled(LogLevel.Debug)) // This is almost always false, so skip the evaluations 34[LoggerMessage(3, LogLevel.Debug, "Rendering component {ComponentId} of type {ComponentType}", EventName = "RenderingComponent", SkipEnabledCheck = true)] 39if (logger.IsEnabled(LogLevel.Debug)) // This is almost always false, so skip the evaluations 45[LoggerMessage(4, LogLevel.Debug, "Disposing component {ComponentId} of type {ComponentType}", EventName = "DisposingComponent", SkipEnabledCheck = true)] 50if (logger.IsEnabled(LogLevel.Debug)) // This is almost always false, so skip the evaluations 56[LoggerMessage(5, LogLevel.Debug, "Handling event {EventId} of type '{EventType}'", EventName = "HandlingEvent", SkipEnabledCheck = true)] 61if (logger.IsEnabled(LogLevel.Debug)) // This is almost always false, so skip the evaluations 67[LoggerMessage(6, LogLevel.Debug, "Skipping attempt to raise event {EventId} of type '{EventType}' because the component ID {ComponentId} was already disposed", EventName = "SkippingEventOnDisposedComponent", SkipEnabledCheck = true)] 72if (logger.IsEnabled(LogLevel.Debug)) // This is almost always false, so skip the evaluations
Routing\Router.cs (4)
485[LoggerMessage(1, LogLevel.Debug, $"Displaying {nameof(NotFound)} because path '{{Path}}' with base URI '{{BaseUri}}' does not match any component route", EventName = "DisplayingNotFound")] 488[LoggerMessage(2, LogLevel.Debug, "Navigating to component {ComponentType} in response to path '{Path}' with base URI '{BaseUri}'", EventName = "NavigatingToComponent")] 491[LoggerMessage(3, LogLevel.Debug, "Navigating to non-component URI '{ExternalUri}' in response to path '{Path}' with base URI '{BaseUri}'", EventName = "NavigatingToExternalUri")] 494[LoggerMessage(4, LogLevel.Debug, $"Displaying contents of {{displayedContentPath}} on request", EventName = "DisplayingNotFoundOnRequest")]
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouter.cs (1)
353[LoggerMessage(1, LogLevel.Debug,
Microsoft.AspNetCore.Components.Endpoints (159)
_generated\0\LoggerMessage.g.cs (104)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "TempDataCookieNotFound"), "The temp data cookie {CookieName} was not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataCookieLoadFailure"), "The temp data cookie {CookieName} could not be loaded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "TempDataCookieSaveSuccess"), "The temp data cookie {CookieName} was successfully saved.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "TempDataCookieLoadSuccess"), "The temp data cookie {CookieName} was successfully loaded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 85global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotResolveConverter"), "Cannot resolve converter for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 94if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 110global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "StartResolveMetadataGraph"), "Begin resolve metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 119if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 126global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "EndResolveMetadataGraph"), "End resolve metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 135if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 142global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "Metadata"), "Cached metadata found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 151if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 158global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NoMetadataFound"), "No cached metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 167if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 174global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "RecursiveTypeFound"), "Recursive type '{Type}' found in the resolution graph '{Chain}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 183if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 190global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "PrimitiveType"), "'{Type}' identified as primitive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 199if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 206global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "DictionaryType"), "'{Type}' identified as dictionary.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 215if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 222global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "CollectionType"), "'{Type}' identified as collection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 231if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 238global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ObjectType"), "'{Type}' identified as object.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 247if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 254global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "ConstructorFound"), "Constructor found for type '{Type}' with parameters '{Parameters}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 263if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 329if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 332global::Microsoft.Extensions.Logging.LogLevel.Debug, 341global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "CandidateProperty"), "Candidate property '{Name}' of type '{PropertyType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 350if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 412if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 415global::Microsoft.Extensions.Logging.LogLevel.Debug, 479if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 482global::Microsoft.Extensions.Logging.LogLevel.Debug, 491global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "IgnoredProperty"), "Candidate property {Name} will not be mapped. It has been explicitly ignored.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 500if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 507global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "NonPublicSetter"), "Candidate property {Name} will not be mapped. It has no public setter.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 516if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 523global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "PropertyRequired"), "Candidate property {Name} is marked as required.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 532if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 539global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "MetadataComputed"), "Metadata created for {Type}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 548if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 555global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "GenericTypeDefinitionNotSupported"), "Can not map type generic type definition '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 564if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 571global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "MultiplePublicConstructorsFound"), "Unable to select a constructor. Multiple public constructors found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 580if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 587global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "InterfacesNotSupported"), "Can not map interface type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 596if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 603global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(22, "AbstractClassesNotSupported"), "Can not map abstract type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 612if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 619global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "NoPublicConstructorFound"), "Unable to select a constructor. No public constructors found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 628if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 635global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(24, "ConstructorParameterTypeNotSupported"), "Can not map type '{Type}'. Constructor parameter {Name} of type {ParameterType} is not supported.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 644if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 651global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(25, "PropertyTypeNotSupported"), "Can not map type '{Type}'. Property {Name} of type {PropertyType} is not supported.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 660if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 676global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "OpaqueUrlUnprotectionFailed"), "Opaque URL unprotection failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 685if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 701global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "BeginRenderRootComponent"), "Begin render root component '{componentType}' with page '{pageType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 710if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 717global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "MiddlewareAntiforgeryValidationFailed"), "The antiforgery middleware already failed to validate the current token.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 726if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 733global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "MiddlewareAntiforgeryValidationSucceeded"), "The antiforgery middleware already succeeded to validate the current token.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 742if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 749global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "EndpointAntiforgeryValidationDisabled"), "The endpoint disabled antiforgery token validation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 758if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 765global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(5, "EndpointAntiforgeryValidationFailed"), "Antiforgery token validation failed for the current request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 774if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 781global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "EndpointAntiforgeryValidationSucceeded"), "Antiforgery token validation succeeded for the current request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 790if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 797global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "InteractivityDisabledForErrorHandling"), "Error handling in progress. Interactive components are not enabled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 806if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 822global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "SessionPersistFail"), "Persisting of the session element failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 831if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 838global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "SessionDeserializeFail"), "Deserialization of the element from session failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 847if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 863global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "TempDataSessionNotFound"), "TempData was not found in session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 872if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 879global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataSessionLoadFailure"), "TempData could not be loaded from session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 888if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 895global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "TempDataSessionSaveSuccess"), "TempData was successfully saved to session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 904if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 911global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "TempDataSessionLoadSuccess"), "TempData was successfully loaded from session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 920if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 936global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "TempDataPersistFail"), "Persisting of the TempData element failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 945if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 952global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataDeserializeFail"), "Deserialization of the element from TempData failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 961if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 977global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "EventHandlerSkipped"), "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 986if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 993global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ElementReferenceCaptureSkipped"), "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1002if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1009global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "ComponentReferenceCaptureSkipped"), "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1018if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1025global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "ComponentRenderModeSkipped"), "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1034if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1041global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "NamedEventSkipped"), "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1050if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1057global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(6, "GenericRenderFragmentSkipped"), "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1066if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Builder\OpaqueRedirection.cs (1)
104[LoggerMessage(1, LogLevel.Information, "Opaque URL unprotection failed.", EventName = "OpaqueUrlUnprotectionFailed")]
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
12LogLevel.Warning,
FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
FormMapping\Metadata\FormDataMetadataFactory.cs (27)
163if (_logger.IsEnabled(LogLevel.Debug)) 305if (_logger.IsEnabled(LogLevel.Debug)) 353[LoggerMessage(1, LogLevel.Debug, "Begin resolve metadata graph for type '{Type}'.", EventName = nameof(StartResolveMetadataGraph))] 356[LoggerMessage(2, LogLevel.Debug, "End resolve metadata graph for type '{Type}'.", EventName = nameof(EndResolveMetadataGraph))] 359[LoggerMessage(3, LogLevel.Debug, "Cached metadata found for type '{Type}'.", EventName = nameof(Metadata))] 362[LoggerMessage(4, LogLevel.Debug, "No cached metadata graph for type '{Type}'.", EventName = nameof(NoMetadataFound))] 365[LoggerMessage(5, LogLevel.Debug, "Recursive type '{Type}' found in the resolution graph '{Chain}'.", EventName = nameof(RecursiveTypeFound))] 368[LoggerMessage(6, LogLevel.Debug, "'{Type}' identified as primitive.", EventName = nameof(PrimitiveType))] 371[LoggerMessage(7, LogLevel.Debug, "'{Type}' identified as dictionary.", EventName = nameof(DictionaryType))] 374[LoggerMessage(8, LogLevel.Debug, "'{Type}' identified as collection.", EventName = nameof(CollectionType))] 377[LoggerMessage(9, LogLevel.Debug, "'{Type}' identified as object.", EventName = nameof(ObjectType))] 380[LoggerMessage(10, LogLevel.Debug, "Constructor found for type '{Type}' with parameters '{Parameters}'.", EventName = nameof(ConstructorFound))] 383[LoggerMessage(11, LogLevel.Debug, "Constructor parameter '{Name}' of type '{ParameterType}' found for type '{Type}'.", EventName = nameof(ConstructorParameter))] 386[LoggerMessage(12, LogLevel.Debug, "Candidate property '{Name}' of type '{PropertyType}'.", EventName = nameof(CandidateProperty))] 389[LoggerMessage(13, LogLevel.Debug, "Candidate property {PropertyName} has a matching constructor parameter '{ConstructorParameterName}'.", EventName = nameof(MatchingConstructorParameterFound))] 392[LoggerMessage(14, LogLevel.Debug, "Candidate property or constructor parameter {PropertyName} defines a custom name '{CustomName}'.", EventName = nameof(CustomParameterNameMetadata))] 395[LoggerMessage(15, LogLevel.Debug, "Candidate property {Name} will not be mapped. It has been explicitly ignored.", EventName = nameof(IgnoredProperty))] 398[LoggerMessage(16, LogLevel.Debug, "Candidate property {Name} will not be mapped. It has no public setter.", EventName = nameof(NonPublicSetter))] 401[LoggerMessage(17, LogLevel.Debug, "Candidate property {Name} is marked as required.", EventName = nameof(PropertyRequired))] 404[LoggerMessage(18, LogLevel.Debug, "Metadata created for {Type}.", EventName = nameof(MetadataComputed))] 407[LoggerMessage(19, LogLevel.Debug, "Can not map type generic type definition '{Type}'.", EventName = nameof(GenericTypeDefinitionNotSupported))] 410[LoggerMessage(20, LogLevel.Debug, "Unable to select a constructor. Multiple public constructors found for type '{Type}'.", EventName = nameof(MultiplePublicConstructorsFound))] 413[LoggerMessage(21, LogLevel.Debug, "Can not map interface type '{Type}'.", EventName = nameof(InterfacesNotSupported))] 416[LoggerMessage(22, LogLevel.Debug, "Can not map abstract type '{Type}'.", EventName = nameof(AbstractClassesNotSupported))] 419[LoggerMessage(23, LogLevel.Debug, "Unable to select a constructor. No public constructors found for type '{Type}'.", EventName = nameof(NoPublicConstructorFound))] 422[LoggerMessage(24, LogLevel.Debug, "Can not map type '{Type}'. Constructor parameter {Name} of type {ParameterType} is not supported.", EventName = nameof(ConstructorParameterTypeNotSupported))] 425[LoggerMessage(25, LogLevel.Debug, "Can not map type '{Type}'. Property {Name} of type {PropertyType} is not supported.", EventName = nameof(PropertyTypeNotSupported))]
RazorComponentEndpointInvoker.cs (7)
320[LoggerMessage(1, LogLevel.Debug, "Begin render root component '{componentType}' with page '{pageType}'.", EventName = nameof(BeginRenderRootComponent))] 323[LoggerMessage(2, LogLevel.Debug, "The antiforgery middleware already failed to validate the current token.", EventName = nameof(MiddlewareAntiforgeryValidationFailed))] 326[LoggerMessage(3, LogLevel.Debug, "The antiforgery middleware already succeeded to validate the current token.", EventName = nameof(MiddlewareAntiforgeryValidationSucceeded))] 329[LoggerMessage(4, LogLevel.Debug, "The endpoint disabled antiforgery token validation.", EventName = nameof(EndpointAntiforgeryValidationDisabled))] 332[LoggerMessage(5, LogLevel.Information, "Antiforgery token validation failed for the current request.", EventName = nameof(EndpointAntiforgeryValidationFailed))] 335[LoggerMessage(6, LogLevel.Debug, "Antiforgery token validation succeeded for the current request.", EventName = nameof(EndpointAntiforgeryValidationSucceeded))] 338[LoggerMessage(7, LogLevel.Debug, "Error handling in progress. Interactive components are not enabled.", EventName = nameof(InteractivityDisabledForErrorHandling))]
SessionCascadingValueSupplier.cs (2)
119[LoggerMessage(1, LogLevel.Warning, "Persisting of the session element failed.", EventName = "SessionPersistFail")] 122[LoggerMessage(2, LogLevel.Warning, "Deserialization of the element from session failed.", EventName = "SessionDeserializeFail")]
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (6)
350[LoggerMessage(1, LogLevel.Warning, "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", EventName = "EventHandlerSkipped")] 353[LoggerMessage(2, LogLevel.Warning, "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", EventName = "ElementReferenceCaptureSkipped")] 356[LoggerMessage(3, LogLevel.Warning, "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", EventName = "ComponentReferenceCaptureSkipped")] 359[LoggerMessage(4, LogLevel.Warning, "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", EventName = "ComponentRenderModeSkipped")] 362[LoggerMessage(5, LogLevel.Warning, "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", EventName = "NamedEventSkipped")] 365[LoggerMessage(6, LogLevel.Warning, "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", EventName = "GenericRenderFragmentSkipped")]
TempData\CookieTempDataProvider.cs (4)
157[LoggerMessage(1, LogLevel.Debug, "The temp data cookie {CookieName} was not found.", EventName = "TempDataCookieNotFound")] 160[LoggerMessage(2, LogLevel.Warning, "The temp data cookie {CookieName} could not be loaded.", EventName = "TempDataCookieLoadFailure")] 163[LoggerMessage(3, LogLevel.Debug, "The temp data cookie {CookieName} was successfully saved.", EventName = "TempDataCookieSaveSuccess")] 166[LoggerMessage(4, LogLevel.Debug, "The temp data cookie {CookieName} was successfully loaded.", EventName = "TempDataCookieLoadSuccess")]
TempData\SessionStorageTempDataProvider.cs (4)
80[LoggerMessage(1, LogLevel.Debug, "TempData was not found in session.", EventName = "TempDataSessionNotFound")] 83[LoggerMessage(2, LogLevel.Warning, "TempData could not be loaded from session.", EventName = "TempDataSessionLoadFailure")] 86[LoggerMessage(3, LogLevel.Debug, "TempData was successfully saved to session.", EventName = "TempDataSessionSaveSuccess")] 89[LoggerMessage(4, LogLevel.Debug, "TempData was successfully loaded from session.", EventName = "TempDataSessionLoadSuccess")]
TempData\TempDataCascadingValueSupplier.cs (2)
97[LoggerMessage(1, LogLevel.Warning, "Persisting of the TempData element failed.", EventName = "TempDataPersistFail")] 100[LoggerMessage(2, LogLevel.Warning, "Deserialization of the element from TempData failed.", EventName = "TempDataDeserializeFail")]
Microsoft.AspNetCore.Components.Server (423)
_generated\0\LoggerMessage.g.cs (280)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "EventHandlerSkipped"), "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ElementReferenceCaptureSkipped"), "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "ComponentReferenceCaptureSkipped"), "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "ComponentRenderModeSkipped"), "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "NamedEventSkipped"), "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(6, "GenericRenderFragmentSkipped"), "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 117global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "CircuitTerminatingGracefully"), "Circuit with id '{CircuitId}' terminating gracefully.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 126if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 133global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "CircuitTerminatedGracefully"), "Circuit with id '{CircuitId}' terminated gracefully.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 142if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 149global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "InvalidCircuitId"), "CircuitDisconnectMiddleware received an invalid circuit id '{CircuitIdSecret}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 158if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 174global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "CreatedCircuit"), "Created circuit {CircuitId} for connection {ConnectionId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 183if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 199global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(100, "InitializationStarted"), "Circuit initialization started.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 208if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 215global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "InitializationSucceeded"), "Circuit initialization succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 224if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 231global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "InitializationFailed"), "Circuit initialization failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 240if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 247global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "DisposeStarted"), "Disposing circuit '{CircuitId}' started.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 256if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 263global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "DisposeSucceeded"), "Disposing circuit '{CircuitId}' succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 272if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 279global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(105, "DisposeFailed"), "Disposing circuit '{CircuitId}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 288if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 295global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(106, "OnCircuitOpened"), "Opening circuit with id '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 304if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 311global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(107, "OnConnectionUp"), "Circuit id '{CircuitId}' connected using connection '{ConnectionId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 320if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 327global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(108, "OnConnectionDown"), "Circuit id '{CircuitId}' disconnected from connection '{ConnectionId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 336if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 343global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(109, "OnCircuitClosed"), "Closing circuit with id '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 352if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 359global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(110, "CircuitHandlerFailed"), "Unhandled error invoking circuit handler type {handlerType}.{handlerMethod}: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 368if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 375global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(111, "UpdateRootComponentsStarted"), "Update root components started.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 384if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 391global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(112, "UpdateRootComponentsSucceeded"), "Update root components succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 400if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 407global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(113, "UpdateRootComponentsFailed"), "Update root components failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 416if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 423global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(111, "CircuitUnhandledException"), "Unhandled exception in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 432if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 439global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(112, "CircuitTransmittingClientError"), "About to notify client of an error in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 448if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 455global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(113, "CircuitTransmittedClientErrorSuccess"), "Successfully transmitted error to client in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 464if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 471global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(114, "CircuitTransmitErrorFailed"), "Failed to transmit exception to client in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 480if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 487global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(115, "UnhandledExceptionClientDisconnected"), "An exception occurred on the circuit host '{CircuitId}' while the client is disconnected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 496if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 503global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(116, "InvalidComponentTypeForUpdate"), "The root component operation of type 'Update' was invalid: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 512if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 519global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(200, "DispatchEventFailedToParseEventData"), "Failed to parse the event data when trying to dispatch an event.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 528if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 535global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(201, "DispatchEventFailedToDispatchEvent"), "There was an error dispatching the event '{EventHandlerId}' to the application.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 544if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 551global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(202, "BeginInvokeDotNet"), "Invoking instance method '{MethodIdentifier}' on instance '{DotNetObjectId}' with callback id '{CallId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 560if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 567global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(203, "BeginInvokeDotNetFailed"), "Failed to invoke instance method '{MethodIdentifier}' on instance '{DotNetObjectId}' with callback id '{CallId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 576if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 583global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(204, "EndInvokeDispatchException"), "There was an error invoking 'Microsoft.JSInterop.DotNetDispatcher.EndInvoke'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 592if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 599global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(205, "EndInvokeJSFailed"), "The JS interop call with callback id '{AsyncCall}' with arguments {Arguments}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 608if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 615global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(206, "EndInvokeJSSucceeded"), "The JS interop call with callback id '{AsyncCall}' succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 624if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 631global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(208, "LocationChange"), "Location changing to {URI} in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 640if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 647global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(209, "LocationChangeSucceeded"), "Location change to '{URI}' in circuit '{CircuitId}' succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 656if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 663global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(210, "LocationChangeFailed"), "Location change to '{URI}' in circuit '{CircuitId}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 672if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 679global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(211, "LocationChanging"), "Location is about to change to {URI} in ciruit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 688if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 695global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(212, "OnRenderCompletedFailed"), "Failed to complete render batch '{RenderId}' in circuit host '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 704if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 711global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(213, "ReceiveByteArraySucceeded"), "The ReceiveByteArray call with id '{id}' succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 720if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 727global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(214, "ReceiveByteArrayException"), "The ReceiveByteArray call with id '{id}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 736if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 743global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(215, "ReceiveJSDataChunkException"), "The ReceiveJSDataChunk call with stream id '{streamId}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 752if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 759global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(216, "SendDotNetStreamException"), "The SendDotNetStreamAsync call with id '{id}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 768if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 775global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(217, "BeginInvokeDotNetStatic"), "Invoking static method with identifier '{MethodIdentifier}' on assembly '{Assembly}' with callback id '{CallId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 784if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 791global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(218, "BeginInvokeDotNetStaticFailed"), "Failed to invoke static method with identifier '{MethodIdentifier}' on assembly '{Assembly}' with callback id '{CallId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 800if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 807global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(219, "LocationChangeFailedInCircuit"), "Location change to '{URI}' in circuit '{CircuitId}' failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 816if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 823global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(220, "FailedToSaveStateToClient"), "Failed to save state to client in circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 832if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 839global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(120, "ServerPauseRequested"), "Server-initiated pause requested for circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 848if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 855global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(121, "ServerPauseAccepted"), "Server-initiated pause request accepted for circuit '{CircuitId}'. Client has been asked to begin pausing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 864if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 871global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(122, "ServerPauseRejected"), "Server-initiated pause request rejected for circuit '{CircuitId}'. Circuit is not in a connected state.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 880if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 887global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(123, "ServerPauseFailed"), "Server-initiated pause request failed for circuit '{CircuitId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 896if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 912global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(100, "ExceptionDisposingCircuit"), "Unhandled exception disposing circuit host: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 921if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 928global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "ExceptionDisposingTokenSource"), "Exception thrown when disposing token source: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 937if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 944global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "AttemptingToReconnect"), "Attempting to reconnect to Circuit with secret {CircuitHost}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 953if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 960global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "FailedToFindCircuit"), "Failed to find a matching circuit for circuit secret {CircuitHost}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 969if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 976global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(105, "ConnectingToActiveCircuit"), "Transferring active circuit {CircuitId} to connection {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 985if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 992global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(106, "ConnectingToDisconnectedCircuit"), "Transferring disconnected circuit {CircuitId} to connection {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1001if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1008global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(107, "FailedToReconnectToCircuit"), "Failed to reconnect to a circuit with id {CircuitId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1017if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1024global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(108, "CircuitDisconnectStarted"), "Attempting to disconnect circuit with id {CircuitId} from connection {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1033if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1040global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(109, "CircuitNotActive"), "Failed to disconnect circuit with id {CircuitId}. The circuit is not active.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1049if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1056global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(110, "CircuitConnectedToDifferentConnection"), "Failed to disconnect circuit with id {CircuitId}. The circuit is connected to {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1065if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1072global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(111, "CircuitMarkedDisconnected"), "Circuit with id {CircuitId} is disconnected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1081if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1088global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::Microsoft.Extensions.Caching.Memory.EvictionReason>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(112, "CircuitEvicted"), "Circuit with id {CircuitId} evicted due to {EvictionReason}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1097if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1104global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(113, "CircuitDisconnectedPermanently"), "Circuit with id {CircuitId} has been removed from the registry for permanent disconnection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1113if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1120global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(114, "CircuitExceptionHandlerFailed"), "Exception handler for {CircuitId} failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1129if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1136global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(115, "ReconnectionSucceeded"), "Reconnect to circuit with id {CircuitId} succeeded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1145if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1203if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1206global::Microsoft.Extensions.Logging.LogLevel.Debug, 1215global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(117, "CircuitPauseStarted"), "Pausing circuit with id {CircuitId} from connection {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1224if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1231global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(118, "CircuitPauseFailed"), "Failed to pause circuit with id {CircuitId} from connection {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1240if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1256global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::Microsoft.Extensions.Caching.Memory.EvictionReason>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "CircuitStateEvicted"), "Circuit state evicted for circuit {CircuitId} due to {Reason}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1265if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1272global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "CircuitResumeStarted"), "Resuming circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1281if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1288global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "FailedToFindCircuitState"), "Failed to find persisted circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1297if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1304global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "CircuitStateFound"), "Circuit state found for circuit {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1313if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1320global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(105, "ExceptionDisposingTokenSource"), "An exception occurred while disposing the token source.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1329if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1336global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(106, "CircuitPauseStarted"), "Pausing circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1345if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1361global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(201, "CircuitStateEvicted"), "Circuit state evicted for circuit {CircuitId} due to {Reason}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1370if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1377global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(202, "CircuitResumeStarted"), "Resuming circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1386if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1393global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(203, "FailedToFindCircuitState"), "Failed to find persisted circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1402if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1409global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(204, "CircuitStateFound"), "Circuit state found for circuit {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1418if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1425global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(205, "ExceptionDisposingTokenSource"), "An exception occurred while disposing the token source.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1434if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1441global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(206, "CircuitPauseStarted"), "Pausing circuit with ID {CircuitId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1450if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1457global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(207, "ExceptionPersistingCircuit"), "An exception occurred while persisting circuit {CircuitId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1466if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1473global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(208, "ExceptionRestoringCircuit"), "An exception occurred while restoring circuit {CircuitId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1482if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1489global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(209, "ExceptionDuringExpiration"), "An exception occurred during expiration handling for circuit {CircuitId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1498if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1505global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(210, "ExceptionRemovingExpiredCircuit"), "An exception occurred while removing expired circuit {CircuitId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1514if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1530global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(100, "ExceptionCaughtByErrorBoundary"), "Unhandled exception rendering component: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1539if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1555global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "BeginInvokeJS"), "Begin invoke JS interop '{AsyncHandle}': '{FunctionIdentifier}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1564if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1571global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "InvokeStaticDotNetMethodException"), "There was an error invoking the static method '[{AssemblyName}]::{MethodIdentifier}' with callback id '{CallbackId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1580if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1587global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "InvokeInstanceDotNetMethodException"), "There was an error invoking the instance method '{MethodIdentifier}' on reference '{DotNetObjectReference}' with callback id '{CallbackId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1596if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1603global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "InvokeStaticDotNetMethodSuccess"), "Invocation of '[{AssemblyName}]::{MethodIdentifier}' with callback id '{CallbackId}' completed successfully.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1612if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1619global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "InvokeInstanceDotNetMethodSuccess"), "Invocation of '{MethodIdentifier}' on reference '{DotNetObjectReference}' with callback id '{CallbackId}' completed successfully.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1628if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1644global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, bool, bool>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestingNavigation"), "Requesting navigation to URI {Uri} with forceLoad={ForceLoad}, replace={Replace}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1653if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1660global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, bool>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ReceivedLocationChangedNotification"), "Received notification that the URI has changed to {Uri} with isIntercepted={IsIntercepted}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1669if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1676global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NavigationCanceled"), "Navigation canceled when changing the location to {Uri}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1685if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1692global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(4, "NavigationFailed"), "Navigation failed when changing the location to {Uri}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1701if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1708global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(5, "RefreshFailed"), "Failed to refresh", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1717if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1724global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestingNotFound"), "Requesting not found", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1733if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1740global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "NavigationCompleted"), "Navigation completed when changing the location to {Uri}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1749if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1756global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "NavigationStoppedSessionEnded"), "Navigation stopped because the session ended when navigating to {Uri}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1765if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1781global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(100, "ExceptionRenderingComponent"), "Unhandled exception rendering component: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1790if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1797global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, int, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "BeginUpdateDisplayAsync"), "Sending render batch {BatchId} of size {DataLength} bytes to client {ConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1806if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1813global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "SkipUpdateDisplayAsync"), "Buffering remote render because the client on connection {ConnectionId} is disconnected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1822if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1829global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(103, "SendBatchDataFailed"), "Sending data for batch failed: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1838if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1845global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, string, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "CompletingBatchWithError"), "Completing batch {BatchId} with error: {ErrorMessage} in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1854if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1861global::Microsoft.Extensions.Logging.LoggerMessage.Define<long, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(105, "CompletingBatchWithoutError"), "Completing batch {BatchId} without error in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1870if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1877global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(106, "ReceivedDuplicateBatchAcknowledgement"), "Received a duplicate ACK for batch id '{IncomingBatchId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1886if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1893global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(107, "FullUnacknowledgedRenderBatchesQueue"), "The queue of unacknowledged render batches is full.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1902if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1918global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ReceivedConfirmationForBatch"), "Received confirmation for batch {BatchId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1927if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1934global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "CircuitAlreadyInitialized"), "The circuit host '{CircuitId}' has already been initialized", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1943if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1950global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "CircuitHostNotInitialized"), "Call to '{CallSite}' received before the circuit host initialization", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1959if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1966global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "CircuitHostShutdown"), "Call to '{CallSite}' received after the circuit was shut down", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1975if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1982global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "InvalidInputData"), "Call to '{CallSite}' received invalid input data", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1991if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1998global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "CircuitInitializationFailed"), "Circuit initialization failed", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2007if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2014global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "CreatedCircuit"), "Created circuit '{CircuitId}' with secret '{CircuitIdSecret}' for '{ConnectionId}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2023if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2030global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "InvalidCircuitId"), "ConnectAsync received an invalid circuit id '{CircuitIdSecret}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2039if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2046global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ResumeInvalidCircuitId"), "ResumeCircuit received an invalid circuit id '{CircuitIdSecret}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2055if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2071global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ParameterValuesInvalidFormat"), "Parameter values must be an array.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2080if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2087global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "IncompleteParameterDefinition"), "The parameter definition for '{ParameterName}' is incomplete: Type='{TypeName}' Assembly='{Assembly}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2096if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2103global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "InvalidParameterType"), "The parameter '{ParameterName} with type '{TypeName}' in assembly '{Assembly}' could not be found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2112if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2119global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "InvalidParameterValue"), "Could not parse the parameter value for parameter '{Name}' of type '{TypeName}' and assembly '{Assembly}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2128if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2135global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "FailedToParseParameterDefinitions"), "Failed to parse the parameter definitions.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2144if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2151global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "FailedToParseParameterValues"), "Failed to parse the parameter values.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2160if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2167global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "MismatchedParameterAndDefinitions"), "The number of parameter definitions '{DescriptorsLength}' does not match the number parameter values '{ValuesLength}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2176if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2183global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "MissingParameterDefinitionName"), "The name is missing in a parameter definition.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2192if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2208global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "FailedToDeserializeDescriptor"), "Failed to deserialize the component descriptor.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2217if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2224global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToFindComponent"), "Failed to find component '{ComponentName}' in assembly '{Assembly}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2233if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2240global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "FailedToUnprotectDescriptor"), "Failed to unprotect the component descriptor.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2249if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2256global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "InvalidMarkerType"), "Invalid component marker type '{MarkerType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2265if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2272global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "MissingMarkerDescriptor"), "The component marker is missing the descriptor.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2281if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2288global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "MismatchedInvocationId"), "The descriptor invocationId is '{invocationId}' and got a descriptor with invocationId '{currentInvocationId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2297if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2304global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "OutOfSequenceDescriptor"), "The last descriptor sequence was '{lastSequence}' and got a descriptor with sequence '{sequence}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2313if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2320global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "DescriptorSequenceMustStartAtZero"), "The descriptor sequence '{sequence}' is an invalid start sequence.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2329if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2336global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ExpiredInvocationId"), "The descriptor invocationId '{invocationId}' has expired.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2345if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2352global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "ReusedDescriptorSequence"), "The descriptor with sequence '{sequence}' was already used for the current invocationId '{invocationId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2361if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2368global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Components.RootComponentOperationType, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "InvalidRootComponentOperation"), "The root component operation of type '{OperationType}' was invalid: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2377if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2384global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "FailedToProcessRootComponentOperations"), "Failed to parse root component operations", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2393if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2400global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "InvalidRootComponentKey"), "The provided root component key was not valid.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2409if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
CircuitDisconnectMiddleware.cs (3)
91[LoggerMessage(1, LogLevel.Debug, "Circuit with id '{CircuitId}' terminating gracefully.", EventName = "CircuitTerminatingGracefully")] 94[LoggerMessage(2, LogLevel.Debug, "Circuit with id '{CircuitId}' terminated gracefully.", EventName = "CircuitTerminatedGracefully")] 97[LoggerMessage(3, LogLevel.Debug, "CircuitDisconnectMiddleware received an invalid circuit id '{CircuitIdSecret}'.", EventName = "InvalidCircuitId")]
Circuits\CircuitFactory.cs (1)
130[LoggerMessage(1, LogLevel.Debug, "Created circuit {CircuitId} for connection {ConnectionId}", EventName = "CreatedCircuit")]
Circuits\CircuitHost.cs (44)
1035[LoggerMessage(100, LogLevel.Debug, "Circuit initialization started.", EventName = "InitializationStarted")] 1038[LoggerMessage(101, LogLevel.Debug, "Circuit initialization succeeded.", EventName = "InitializationSucceeded")] 1041[LoggerMessage(102, LogLevel.Debug, "Circuit initialization failed.", EventName = "InitializationFailed")] 1044[LoggerMessage(103, LogLevel.Debug, "Disposing circuit '{CircuitId}' started.", EventName = "DisposeStarted")] 1047[LoggerMessage(104, LogLevel.Debug, "Disposing circuit '{CircuitId}' succeeded.", EventName = "DisposeSucceeded")] 1050[LoggerMessage(105, LogLevel.Debug, "Disposing circuit '{CircuitId}' failed.", EventName = "DisposeFailed")] 1053[LoggerMessage(106, LogLevel.Debug, "Opening circuit with id '{CircuitId}'.", EventName = "OnCircuitOpened")] 1056[LoggerMessage(107, LogLevel.Debug, "Circuit id '{CircuitId}' connected using connection '{ConnectionId}'.", EventName = "OnConnectionUp")] 1059[LoggerMessage(108, LogLevel.Debug, "Circuit id '{CircuitId}' disconnected from connection '{ConnectionId}'.", EventName = "OnConnectionDown")] 1062[LoggerMessage(109, LogLevel.Debug, "Closing circuit with id '{CircuitId}'.", EventName = "OnCircuitClosed")] 1065[LoggerMessage(110, LogLevel.Error, "Unhandled error invoking circuit handler type {handlerType}.{handlerMethod}: {Message}", EventName = "CircuitHandlerFailed")] 1068[LoggerMessage(111, LogLevel.Debug, "Update root components started.", EventName = nameof(UpdateRootComponentsStarted))] 1071[LoggerMessage(112, LogLevel.Debug, "Update root components succeeded.", EventName = nameof(UpdateRootComponentsSucceeded))] 1074[LoggerMessage(113, LogLevel.Debug, "Update root components failed.", EventName = nameof(UpdateRootComponentsFailed))] 1087[LoggerMessage(111, LogLevel.Error, "Unhandled exception in circuit '{CircuitId}'.", EventName = "CircuitUnhandledException")] 1090[LoggerMessage(112, LogLevel.Debug, "About to notify client of an error in circuit '{CircuitId}'.", EventName = "CircuitTransmittingClientError")] 1093[LoggerMessage(113, LogLevel.Debug, "Successfully transmitted error to client in circuit '{CircuitId}'.", EventName = "CircuitTransmittedClientErrorSuccess")] 1096[LoggerMessage(114, LogLevel.Debug, "Failed to transmit exception to client in circuit '{CircuitId}'.", EventName = "CircuitTransmitErrorFailed")] 1099[LoggerMessage(115, LogLevel.Debug, "An exception occurred on the circuit host '{CircuitId}' while the client is disconnected.", EventName = "UnhandledExceptionClientDisconnected")] 1102[LoggerMessage(116, LogLevel.Debug, "The root component operation of type 'Update' was invalid: {Message}", EventName = nameof(InvalidComponentTypeForUpdate))] 1105[LoggerMessage(200, LogLevel.Debug, "Failed to parse the event data when trying to dispatch an event.", EventName = "DispatchEventFailedToParseEventData")] 1108[LoggerMessage(201, LogLevel.Debug, "There was an error dispatching the event '{EventHandlerId}' to the application.", EventName = "DispatchEventFailedToDispatchEvent")] 1111[LoggerMessage(202, LogLevel.Debug, "Invoking instance method '{MethodIdentifier}' on instance '{DotNetObjectId}' with callback id '{CallId}'.", EventName = "BeginInvokeDotNet")] 1114[LoggerMessage(203, LogLevel.Debug, "Failed to invoke instance method '{MethodIdentifier}' on instance '{DotNetObjectId}' with callback id '{CallId}'.", EventName = "BeginInvokeDotNetFailed")] 1117[LoggerMessage(204, LogLevel.Debug, "There was an error invoking 'Microsoft.JSInterop.DotNetDispatcher.EndInvoke'.", EventName = "EndInvokeDispatchException")] 1120[LoggerMessage(205, LogLevel.Debug, "The JS interop call with callback id '{AsyncCall}' with arguments {Arguments}.", EventName = "EndInvokeJSFailed")] 1123[LoggerMessage(206, LogLevel.Debug, "The JS interop call with callback id '{AsyncCall}' succeeded.", EventName = "EndInvokeJSSucceeded")] 1126[LoggerMessage(208, LogLevel.Debug, "Location changing to {URI} in circuit '{CircuitId}'.", EventName = "LocationChange")] 1129[LoggerMessage(209, LogLevel.Debug, "Location change to '{URI}' in circuit '{CircuitId}' succeeded.", EventName = "LocationChangeSucceeded")] 1132[LoggerMessage(210, LogLevel.Debug, "Location change to '{URI}' in circuit '{CircuitId}' failed.", EventName = "LocationChangeFailed")] 1135[LoggerMessage(211, LogLevel.Debug, "Location is about to change to {URI} in ciruit '{CircuitId}'.", EventName = "LocationChanging")] 1138[LoggerMessage(212, LogLevel.Debug, "Failed to complete render batch '{RenderId}' in circuit host '{CircuitId}'.", EventName = "OnRenderCompletedFailed")] 1141[LoggerMessage(213, LogLevel.Debug, "The ReceiveByteArray call with id '{id}' succeeded.", EventName = "ReceiveByteArraySucceeded")] 1144[LoggerMessage(214, LogLevel.Debug, "The ReceiveByteArray call with id '{id}' failed.", EventName = "ReceiveByteArrayException")] 1147[LoggerMessage(215, LogLevel.Debug, "The ReceiveJSDataChunk call with stream id '{streamId}' failed.", EventName = "ReceiveJSDataChunkException")] 1150[LoggerMessage(216, LogLevel.Debug, "The SendDotNetStreamAsync call with id '{id}' failed.", EventName = "SendDotNetStreamException")] 1153[LoggerMessage(217, LogLevel.Debug, "Invoking static method with identifier '{MethodIdentifier}' on assembly '{Assembly}' with callback id '{CallId}'.", EventName = "BeginInvokeDotNetStatic")] 1168[LoggerMessage(218, LogLevel.Debug, "Failed to invoke static method with identifier '{MethodIdentifier}' on assembly '{Assembly}' with callback id '{CallId}'.", EventName = "BeginInvokeDotNetStaticFailed")] 1183[LoggerMessage(219, LogLevel.Error, "Location change to '{URI}' in circuit '{CircuitId}' failed.", EventName = "LocationChangeFailedInCircuit")] 1186[LoggerMessage(220, LogLevel.Debug, "Failed to save state to client in circuit '{CircuitId}'.", EventName = "FailedToSaveStateToClient")] 1189[LoggerMessage(120, LogLevel.Debug, "Server-initiated pause requested for circuit '{CircuitId}'.", EventName = "ServerPauseRequested")] 1192[LoggerMessage(121, LogLevel.Debug, "Server-initiated pause request accepted for circuit '{CircuitId}'. Client has been asked to begin pausing.", EventName = "ServerPauseAccepted")] 1195[LoggerMessage(122, LogLevel.Debug, "Server-initiated pause request rejected for circuit '{CircuitId}'. Circuit is not in a connected state.", EventName = "ServerPauseRejected")] 1198[LoggerMessage(123, LogLevel.Debug, "Server-initiated pause request failed for circuit '{CircuitId}'.", EventName = "ServerPauseFailed")]
Circuits\CircuitRegistry.cs (18)
437[LoggerMessage(100, LogLevel.Error, "Unhandled exception disposing circuit host: {Message}", EventName = "ExceptionDisposingCircuit")] 443[LoggerMessage(101, LogLevel.Debug, "Exception thrown when disposing token source: {Message}", EventName = "ExceptionDisposingTokenSource")] 449[LoggerMessage(102, LogLevel.Debug, "Attempting to reconnect to Circuit with secret {CircuitHost}.", EventName = "AttemptingToReconnect")] 452[LoggerMessage(104, LogLevel.Debug, "Failed to find a matching circuit for circuit secret {CircuitHost}.", EventName = "FailedToFindCircuit")] 455[LoggerMessage(105, LogLevel.Debug, "Transferring active circuit {CircuitId} to connection {ConnectionId}.", EventName = "ConnectingToActiveCircuit")] 458[LoggerMessage(106, LogLevel.Debug, "Transferring disconnected circuit {CircuitId} to connection {ConnectionId}.", EventName = "ConnectingToDisconnectedCircuit")] 461[LoggerMessage(107, LogLevel.Debug, "Failed to reconnect to a circuit with id {CircuitId}.", EventName = "FailedToReconnectToCircuit")] 464[LoggerMessage(108, LogLevel.Debug, "Attempting to disconnect circuit with id {CircuitId} from connection {ConnectionId}.", EventName = "CircuitDisconnectStarted")] 467[LoggerMessage(109, LogLevel.Debug, "Failed to disconnect circuit with id {CircuitId}. The circuit is not active.", EventName = "CircuitNotActive")] 470[LoggerMessage(110, LogLevel.Debug, "Failed to disconnect circuit with id {CircuitId}. The circuit is connected to {ConnectionId}.", EventName = "CircuitConnectedToDifferentConnection")] 473[LoggerMessage(111, LogLevel.Debug, "Circuit with id {CircuitId} is disconnected.", EventName = "CircuitMarkedDisconnected")] 476[LoggerMessage(112, LogLevel.Debug, "Circuit with id {CircuitId} evicted due to {EvictionReason}.", EventName = "CircuitEvicted")] 479[LoggerMessage(113, LogLevel.Debug, "Circuit with id {CircuitId} has been removed from the registry for permanent disconnection.", EventName = "CircuitDisconnectedPermanently")] 482[LoggerMessage(114, LogLevel.Error, "Exception handler for {CircuitId} failed.", EventName = "CircuitExceptionHandlerFailed")] 485[LoggerMessage(115, LogLevel.Debug, "Reconnect to circuit with id {CircuitId} succeeded.", EventName = "ReconnectionSucceeded")] 488[LoggerMessage(116, LogLevel.Debug, "Circuit {CircuitId} was not resumed. Persisted circuit state for {CircuitId} discarded.", EventName = "PersistedCircuitStateDiscarded")] 491[LoggerMessage(117, LogLevel.Debug, "Pausing circuit with id {CircuitId} from connection {ConnectionId}.", EventName = "CircuitPauseStarted")] 494[LoggerMessage(118, LogLevel.Debug, "Failed to pause circuit with id {CircuitId} from connection {ConnectionId}.", EventName = "CircuitPauseFailed")]
Circuits\ComponentParameterDeserializer.cs (8)
102[LoggerMessage(1, LogLevel.Debug, "Parameter values must be an array.", EventName = "ParameterValuesInvalidFormat")] 105[LoggerMessage(2, LogLevel.Debug, "The parameter definition for '{ParameterName}' is incomplete: Type='{TypeName}' Assembly='{Assembly}'.", EventName = "IncompleteParameterDefinition")] 108[LoggerMessage(3, LogLevel.Debug, "The parameter '{ParameterName} with type '{TypeName}' in assembly '{Assembly}' could not be found.", EventName = "InvalidParameterType")] 111[LoggerMessage(4, LogLevel.Debug, "Could not parse the parameter value for parameter '{Name}' of type '{TypeName}' and assembly '{Assembly}'.", EventName = "InvalidParameterValue")] 114[LoggerMessage(5, LogLevel.Debug, "Failed to parse the parameter definitions.", EventName = "FailedToParseParameterDefinitions")] 117[LoggerMessage(6, LogLevel.Debug, "Failed to parse the parameter values.", EventName = "FailedToParseParameterValues")] 120[LoggerMessage(7, LogLevel.Debug, "The number of parameter definitions '{DescriptorsLength}' does not match the number parameter values '{ValuesLength}'.", EventName = "MismatchedParameterAndDefinitions")] 123[LoggerMessage(8, LogLevel.Debug, "The name is missing in a parameter definition.", EventName = "MissingParameterDefinitionName")]
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (6)
152[LoggerMessage(101, LogLevel.Debug, "Circuit state evicted for circuit {CircuitId} due to {Reason}", EventName = "CircuitStateEvicted")] 155[LoggerMessage(102, LogLevel.Debug, "Resuming circuit with ID {CircuitId}", EventName = "CircuitResumeStarted")] 158[LoggerMessage(103, LogLevel.Debug, "Failed to find persisted circuit with ID {CircuitId}", EventName = "FailedToFindCircuitState")] 161[LoggerMessage(104, LogLevel.Debug, "Circuit state found for circuit {CircuitId}", EventName = "CircuitStateFound")] 164[LoggerMessage(105, LogLevel.Error, "An exception occurred while disposing the token source.", EventName = "ExceptionDisposingTokenSource")] 167[LoggerMessage(106, LogLevel.Debug, "Pausing circuit with ID {CircuitId}", EventName = "CircuitPauseStarted")]
Circuits\HybridCacheCircuitPersistenceProvider.cs (10)
101[LoggerMessage(201, LogLevel.Debug, "Circuit state evicted for circuit {CircuitId} due to {Reason}", EventName = "CircuitStateEvicted")] 104[LoggerMessage(202, LogLevel.Debug, "Resuming circuit with ID {CircuitId}", EventName = "CircuitResumeStarted")] 107[LoggerMessage(203, LogLevel.Debug, "Failed to find persisted circuit with ID {CircuitId}", EventName = "FailedToFindCircuitState")] 110[LoggerMessage(204, LogLevel.Debug, "Circuit state found for circuit {CircuitId}", EventName = "CircuitStateFound")] 113[LoggerMessage(205, LogLevel.Error, "An exception occurred while disposing the token source.", EventName = "ExceptionDisposingTokenSource")] 116[LoggerMessage(206, LogLevel.Debug, "Pausing circuit with ID {CircuitId}", EventName = "CircuitPauseStarted")] 119[LoggerMessage(207, LogLevel.Error, "An exception occurred while persisting circuit {CircuitId}.", EventName = "ExceptionPersistingCircuit")] 122[LoggerMessage(208, LogLevel.Error, "An exception occurred while restoring circuit {CircuitId}.", EventName = "ExceptionRestoringCircuit")] 125[LoggerMessage(209, LogLevel.Error, "An exception occurred during expiration handling for circuit {CircuitId}.", EventName = "ExceptionDuringExpiration")] 128[LoggerMessage(210, LogLevel.Error, "An exception occurred while removing expired circuit {CircuitId}.", EventName = "ExceptionRemovingExpiredCircuit")]
Circuits\RemoteErrorBoundaryLogger.cs (1)
47[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionCaughtByErrorBoundary")]
Circuits\RemoteJSRuntime.cs (5)
243[LoggerMessage(1, LogLevel.Debug, "Begin invoke JS interop '{AsyncHandle}': '{FunctionIdentifier}'", EventName = "BeginInvokeJS")] 246[LoggerMessage(2, LogLevel.Debug, "There was an error invoking the static method '[{AssemblyName}]::{MethodIdentifier}' with callback id '{CallbackId}'.", EventName = "InvokeStaticDotNetMethodException")] 249[LoggerMessage(4, LogLevel.Debug, "There was an error invoking the instance method '{MethodIdentifier}' on reference '{DotNetObjectReference}' with callback id '{CallbackId}'.", EventName = "InvokeInstanceDotNetMethodException")] 252[LoggerMessage(3, LogLevel.Debug, "Invocation of '[{AssemblyName}]::{MethodIdentifier}' with callback id '{CallbackId}' completed successfully.", EventName = "InvokeStaticDotNetMethodSuccess")] 255[LoggerMessage(5, LogLevel.Debug, "Invocation of '{MethodIdentifier}' on reference '{DotNetObjectReference}' with callback id '{CallbackId}' completed successfully.", EventName = "InvokeInstanceDotNetMethodSuccess")]
Circuits\RemoteNavigationManager.cs (8)
219[LoggerMessage(1, LogLevel.Debug, "Requesting navigation to URI {Uri} with forceLoad={ForceLoad}, replace={Replace}", EventName = "RequestingNavigation")] 225[LoggerMessage(2, LogLevel.Debug, "Received notification that the URI has changed to {Uri} with isIntercepted={IsIntercepted}", EventName = "ReceivedLocationChangedNotification")] 228[LoggerMessage(3, LogLevel.Debug, "Navigation canceled when changing the location to {Uri}", EventName = "NavigationCanceled")] 231[LoggerMessage(4, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")] 234[LoggerMessage(5, LogLevel.Error, "Failed to refresh", EventName = "RefreshFailed")] 237[LoggerMessage(1, LogLevel.Debug, "Requesting not found", EventName = "RequestingNotFound")] 240[LoggerMessage(6, LogLevel.Debug, "Navigation completed when changing the location to {Uri}", EventName = "NavigationCompleted")] 243[LoggerMessage(7, LogLevel.Debug, "Navigation stopped because the session ended when navigating to {Uri}", EventName = "NavigationStoppedSessionEnded")]
Circuits\RemoteRenderer.cs (8)
387[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionRenderingComponent")] 393[LoggerMessage(101, LogLevel.Debug, "Sending render batch {BatchId} of size {DataLength} bytes to client {ConnectionId}.", EventName = "BeginUpdateDisplayAsync")] 396[LoggerMessage(102, LogLevel.Debug, "Buffering remote render because the client on connection {ConnectionId} is disconnected.", EventName = "SkipUpdateDisplayAsync")] 399[LoggerMessage(103, LogLevel.Information, "Sending data for batch failed: {Message}", EventName = "SendBatchDataFailed")] 405[LoggerMessage(104, LogLevel.Debug, "Completing batch {BatchId} with error: {ErrorMessage} in {ElapsedMilliseconds}ms.", EventName = "CompletingBatchWithError")] 411[LoggerMessage(105, LogLevel.Debug, "Completing batch {BatchId} without error in {ElapsedMilliseconds}ms.", EventName = "CompletingBatchWithoutError")] 417[LoggerMessage(106, LogLevel.Debug, "Received a duplicate ACK for batch id '{IncomingBatchId}'.", EventName = "ReceivedDuplicateBatchAcknowledgement")] 420[LoggerMessage(107, LogLevel.Debug, "The queue of unacknowledged render batches is full.", EventName = "FullUnacknowledgedRenderBatchesQueue")]
Circuits\ServerComponentDeserializer.cs (13)
370[LoggerMessage(1, LogLevel.Debug, "Failed to deserialize the component descriptor.", EventName = "FailedToDeserializeDescriptor")] 373[LoggerMessage(2, LogLevel.Debug, "Failed to find component '{ComponentName}' in assembly '{Assembly}'.", EventName = "FailedToFindComponent")] 376[LoggerMessage(3, LogLevel.Debug, "Failed to unprotect the component descriptor.", EventName = "FailedToUnprotectDescriptor")] 379[LoggerMessage(4, LogLevel.Debug, "Invalid component marker type '{MarkerType}'.", EventName = "InvalidMarkerType")] 382[LoggerMessage(5, LogLevel.Debug, "The component marker is missing the descriptor.", EventName = "MissingMarkerDescriptor")] 385[LoggerMessage(6, LogLevel.Debug, "The descriptor invocationId is '{invocationId}' and got a descriptor with invocationId '{currentInvocationId}'.", EventName = "MismatchedInvocationId")] 388[LoggerMessage(7, LogLevel.Debug, "The last descriptor sequence was '{lastSequence}' and got a descriptor with sequence '{sequence}'.", EventName = "OutOfSequenceDescriptor")] 391[LoggerMessage(8, LogLevel.Debug, "The descriptor sequence '{sequence}' is an invalid start sequence.", EventName = "DescriptorSequenceMustStartAtZero")] 394[LoggerMessage(9, LogLevel.Debug, "The descriptor invocationId '{invocationId}' has expired.", EventName = "ExpiredInvocationId")] 397[LoggerMessage(10, LogLevel.Debug, "The descriptor with sequence '{sequence}' was already used for the current invocationId '{invocationId}'.", EventName = "ReusedDescriptorSequence")] 400[LoggerMessage(11, LogLevel.Debug, "The root component operation of type '{OperationType}' was invalid: {Message}", EventName = "InvalidRootComponentOperation")] 403[LoggerMessage(12, LogLevel.Debug, "Failed to parse root component operations", EventName = nameof(FailedToProcessRootComponentOperations))] 406[LoggerMessage(13, LogLevel.Debug, "The provided root component key was not valid.", EventName = nameof(InvalidRootComponentKey))]
ComponentHub.cs (12)
615[LoggerMessage(1, LogLevel.Debug, "Received confirmation for batch {BatchId}", EventName = "ReceivedConfirmationForBatch")] 618[LoggerMessage(2, LogLevel.Debug, "The circuit host '{CircuitId}' has already been initialized", EventName = "CircuitAlreadyInitialized")] 621[LoggerMessage(3, LogLevel.Debug, "Call to '{CallSite}' received before the circuit host initialization", EventName = "CircuitHostNotInitialized")] 624[LoggerMessage(4, LogLevel.Debug, "Call to '{CallSite}' received after the circuit was shut down", EventName = "CircuitHostShutdown")] 627[LoggerMessage(5, LogLevel.Debug, "Call to '{CallSite}' received invalid input data", EventName = "InvalidInputData")] 630[LoggerMessage(6, LogLevel.Debug, "Circuit initialization failed", EventName = "CircuitInitializationFailed")] 633[LoggerMessage(7, LogLevel.Debug, "Created circuit '{CircuitId}' with secret '{CircuitIdSecret}' for '{ConnectionId}'", EventName = "CreatedCircuit")] 639if (!logger.IsEnabled(LogLevel.Trace)) 647[LoggerMessage(8, LogLevel.Debug, "ConnectAsync received an invalid circuit id '{CircuitIdSecret}'", EventName = "InvalidCircuitId")] 650[LoggerMessage(9, LogLevel.Debug, "ResumeCircuit received an invalid circuit id '{CircuitIdSecret}'", EventName = "ResumeInvalidCircuitId")] 656if (!logger.IsEnabled(LogLevel.Trace)) 667if (!logger.IsEnabled(LogLevel.Trace))
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (6)
350[LoggerMessage(1, LogLevel.Warning, "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", EventName = "EventHandlerSkipped")] 353[LoggerMessage(2, LogLevel.Warning, "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", EventName = "ElementReferenceCaptureSkipped")] 356[LoggerMessage(3, LogLevel.Warning, "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", EventName = "ComponentReferenceCaptureSkipped")] 359[LoggerMessage(4, LogLevel.Warning, "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", EventName = "ComponentRenderModeSkipped")] 362[LoggerMessage(5, LogLevel.Warning, "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", EventName = "NamedEventSkipped")] 365[LoggerMessage(6, LogLevel.Warning, "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", EventName = "GenericRenderFragmentSkipped")]
Microsoft.AspNetCore.Components.Web (15)
_generated\0\LoggerMessage.g.cs (10)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "BeginLoad"), "Begin load for key '{CacheKey}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "CacheHit"), "Loaded media from cache for key '{CacheKey}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "StreamStart"), "Streaming media for key '{CacheKey}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "LoadSuccess"), "Media load succeeded for key '{CacheKey}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "LoadFailed"), "Media load failed for key '{CacheKey}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
Media\MediaComponentBase.cs (5)
296[LoggerMessage(1, LogLevel.Debug, "Begin load for key '{CacheKey}'", EventName = "BeginLoad")] 299[LoggerMessage(2, LogLevel.Debug, "Loaded media from cache for key '{CacheKey}'", EventName = "CacheHit")] 302[LoggerMessage(3, LogLevel.Debug, "Streaming media for key '{CacheKey}'", EventName = "StreamStart")] 305[LoggerMessage(4, LogLevel.Debug, "Media load succeeded for key '{CacheKey}'", EventName = "LoadSuccess")] 308[LoggerMessage(5, LogLevel.Debug, "Media load failed for key '{CacheKey}'", EventName = "LoadFailed")]
Microsoft.AspNetCore.Components.WebView.Maui (19)
src\BlazorWebView\src\SharedSource\Log.cs (19)
8 [LoggerMessage(EventId = 0, Level = LogLevel.Debug, Message = "Navigating to {uri}.")] 11 [LoggerMessage(EventId = 1, Level = LogLevel.Debug, Message = "Failed to create WebView2 environment. This could mean that WebView2 is not installed.")] 14 [LoggerMessage(EventId = 2, Level = LogLevel.Debug, Message = "Starting WebView2...")] 17 [LoggerMessage(EventId = 3, Level = LogLevel.Debug, Message = "WebView2 is started.")] 20 [LoggerMessage(EventId = 4, Level = LogLevel.Debug, Message = "Handling web request to URI '{requestUri}'.")] 23 [LoggerMessage(EventId = 5, Level = LogLevel.Debug, Message = "Response content being sent for web request to URI '{requestUri}' with HTTP status code {statusCode}.")] 26 [LoggerMessage(EventId = 6, Level = LogLevel.Debug, Message = "Response content was not found for web request to URI '{requestUri}'.")] 29 [LoggerMessage(EventId = 7, Level = LogLevel.Debug, Message = "Navigation event for URI '{uri}' with URL loading strategy '{urlLoadingStrategy}'.")] 32 [LoggerMessage(EventId = 8, Level = LogLevel.Debug, Message = "Launching external browser for URI '{uri}'.")] 35 [LoggerMessage(EventId = 9, Level = LogLevel.Debug, Message = "Calling Blazor.start() in the WebView2.")] 38 [LoggerMessage(EventId = 10, Level = LogLevel.Debug, Message = "Creating file provider at content root '{contentRootDir}', using host page relative path '{hostPageRelativePath}'.")] 41 [LoggerMessage(EventId = 11, Level = LogLevel.Debug, Message = "Adding root component '{componentTypeName}' with selector '{componentSelector}'. Number of parameters: {parameterCount}")] 44 [LoggerMessage(EventId = 12, Level = LogLevel.Debug, Message = "Starting initial navigation to '{startPath}'.")] 47 [LoggerMessage(EventId = 13, Level = LogLevel.Debug, Message = "Creating Android.Webkit.WebView...")] 50 [LoggerMessage(EventId = 14, Level = LogLevel.Debug, Message = "Created Android.Webkit.WebView.")] 53 [LoggerMessage(EventId = 15, Level = LogLevel.Debug, Message = "Running Blazor startup scripts.")] 56 [LoggerMessage(EventId = 16, Level = LogLevel.Debug, Message = "Blazor startup scripts finished.")] 59 [LoggerMessage(EventId = 17, Level = LogLevel.Debug, Message = "Creating WebKit WKWebView...")] 62 [LoggerMessage(EventId = 18, Level = LogLevel.Debug, Message = "Created WebKit WKWebView.")]
Microsoft.AspNetCore.Components.WebView.WindowsForms (19)
src\BlazorWebView\src\SharedSource\Log.cs (19)
8 [LoggerMessage(EventId = 0, Level = LogLevel.Debug, Message = "Navigating to {uri}.")] 11 [LoggerMessage(EventId = 1, Level = LogLevel.Debug, Message = "Failed to create WebView2 environment. This could mean that WebView2 is not installed.")] 14 [LoggerMessage(EventId = 2, Level = LogLevel.Debug, Message = "Starting WebView2...")] 17 [LoggerMessage(EventId = 3, Level = LogLevel.Debug, Message = "WebView2 is started.")] 20 [LoggerMessage(EventId = 4, Level = LogLevel.Debug, Message = "Handling web request to URI '{requestUri}'.")] 23 [LoggerMessage(EventId = 5, Level = LogLevel.Debug, Message = "Response content being sent for web request to URI '{requestUri}' with HTTP status code {statusCode}.")] 26 [LoggerMessage(EventId = 6, Level = LogLevel.Debug, Message = "Response content was not found for web request to URI '{requestUri}'.")] 29 [LoggerMessage(EventId = 7, Level = LogLevel.Debug, Message = "Navigation event for URI '{uri}' with URL loading strategy '{urlLoadingStrategy}'.")] 32 [LoggerMessage(EventId = 8, Level = LogLevel.Debug, Message = "Launching external browser for URI '{uri}'.")] 35 [LoggerMessage(EventId = 9, Level = LogLevel.Debug, Message = "Calling Blazor.start() in the WebView2.")] 38 [LoggerMessage(EventId = 10, Level = LogLevel.Debug, Message = "Creating file provider at content root '{contentRootDir}', using host page relative path '{hostPageRelativePath}'.")] 41 [LoggerMessage(EventId = 11, Level = LogLevel.Debug, Message = "Adding root component '{componentTypeName}' with selector '{componentSelector}'. Number of parameters: {parameterCount}")] 44 [LoggerMessage(EventId = 12, Level = LogLevel.Debug, Message = "Starting initial navigation to '{startPath}'.")] 47 [LoggerMessage(EventId = 13, Level = LogLevel.Debug, Message = "Creating Android.Webkit.WebView...")] 50 [LoggerMessage(EventId = 14, Level = LogLevel.Debug, Message = "Created Android.Webkit.WebView.")] 53 [LoggerMessage(EventId = 15, Level = LogLevel.Debug, Message = "Running Blazor startup scripts.")] 56 [LoggerMessage(EventId = 16, Level = LogLevel.Debug, Message = "Blazor startup scripts finished.")] 59 [LoggerMessage(EventId = 17, Level = LogLevel.Debug, Message = "Creating WebKit WKWebView...")] 62 [LoggerMessage(EventId = 18, Level = LogLevel.Debug, Message = "Created WebKit WKWebView.")]
Microsoft.AspNetCore.Components.WebView.Wpf (19)
src\BlazorWebView\src\SharedSource\Log.cs (19)
8 [LoggerMessage(EventId = 0, Level = LogLevel.Debug, Message = "Navigating to {uri}.")] 11 [LoggerMessage(EventId = 1, Level = LogLevel.Debug, Message = "Failed to create WebView2 environment. This could mean that WebView2 is not installed.")] 14 [LoggerMessage(EventId = 2, Level = LogLevel.Debug, Message = "Starting WebView2...")] 17 [LoggerMessage(EventId = 3, Level = LogLevel.Debug, Message = "WebView2 is started.")] 20 [LoggerMessage(EventId = 4, Level = LogLevel.Debug, Message = "Handling web request to URI '{requestUri}'.")] 23 [LoggerMessage(EventId = 5, Level = LogLevel.Debug, Message = "Response content being sent for web request to URI '{requestUri}' with HTTP status code {statusCode}.")] 26 [LoggerMessage(EventId = 6, Level = LogLevel.Debug, Message = "Response content was not found for web request to URI '{requestUri}'.")] 29 [LoggerMessage(EventId = 7, Level = LogLevel.Debug, Message = "Navigation event for URI '{uri}' with URL loading strategy '{urlLoadingStrategy}'.")] 32 [LoggerMessage(EventId = 8, Level = LogLevel.Debug, Message = "Launching external browser for URI '{uri}'.")] 35 [LoggerMessage(EventId = 9, Level = LogLevel.Debug, Message = "Calling Blazor.start() in the WebView2.")] 38 [LoggerMessage(EventId = 10, Level = LogLevel.Debug, Message = "Creating file provider at content root '{contentRootDir}', using host page relative path '{hostPageRelativePath}'.")] 41 [LoggerMessage(EventId = 11, Level = LogLevel.Debug, Message = "Adding root component '{componentTypeName}' with selector '{componentSelector}'. Number of parameters: {parameterCount}")] 44 [LoggerMessage(EventId = 12, Level = LogLevel.Debug, Message = "Starting initial navigation to '{startPath}'.")] 47 [LoggerMessage(EventId = 13, Level = LogLevel.Debug, Message = "Creating Android.Webkit.WebView...")] 50 [LoggerMessage(EventId = 14, Level = LogLevel.Debug, Message = "Created Android.Webkit.WebView.")] 53 [LoggerMessage(EventId = 15, Level = LogLevel.Debug, Message = "Running Blazor startup scripts.")] 56 [LoggerMessage(EventId = 16, Level = LogLevel.Debug, Message = "Blazor startup scripts finished.")] 59 [LoggerMessage(EventId = 17, Level = LogLevel.Debug, Message = "Creating WebKit WKWebView...")] 62 [LoggerMessage(EventId = 18, Level = LogLevel.Debug, Message = "Created WebKit WKWebView.")]
Microsoft.AspNetCore.CookiePolicy (27)
_generated\0\LoggerMessage.g.cs (18)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<bool>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(1, "NeedsConsent"), "Needs consent: {needsConsent}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<bool>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(2, "HasConsent"), "Has consent: {hasConsent}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ConsentGranted"), "Consent granted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ConsentWithdrawn"), "Consent withdrawn.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "CookieSuppressed"), "Cookie '{key}' suppressed due to consent policy.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "DeleteCookieSuppressed"), "Delete cookie '{key}' suppressed due to developer policy.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "UpgradedToSecure"), "Cookie '{key}' upgraded to 'secure'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "UpgradedSameSite"), "Cookie '{key}' same site mode upgraded to '{mode}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "UpgradedToHttpOnly"), "Cookie '{key}' upgraded to 'httponly'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggingExtensions.cs (9)
8[LoggerMessage(1, LogLevel.Trace, "Needs consent: {needsConsent}.", EventName = "NeedsConsent")] 11[LoggerMessage(2, LogLevel.Trace, "Has consent: {hasConsent}.", EventName = "HasConsent")] 14[LoggerMessage(3, LogLevel.Debug, "Consent granted.", EventName = "ConsentGranted")] 17[LoggerMessage(4, LogLevel.Debug, "Consent withdrawn.", EventName = "ConsentWithdrawn")] 20[LoggerMessage(5, LogLevel.Debug, "Cookie '{key}' suppressed due to consent policy.", EventName = "CookieSuppressed")] 23[LoggerMessage(6, LogLevel.Debug, "Delete cookie '{key}' suppressed due to developer policy.", EventName = "DeleteCookieSuppressed")] 26[LoggerMessage(7, LogLevel.Debug, "Cookie '{key}' upgraded to 'secure'.", EventName = "UpgradedToSecure")] 29[LoggerMessage(8, LogLevel.Debug, "Cookie '{key}' same site mode upgraded to '{mode}'.", EventName = "UpgradedSameSite")] 32[LoggerMessage(9, LogLevel.Debug, "Cookie '{key}' upgraded to 'httponly'.", EventName = "UpgradedToHttpOnly")]
Microsoft.AspNetCore.Cors (33)
_generated\0\LoggerMessage.g.cs (22)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "IsPreflightRequest"), "The request is a preflight request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "RequestHasOriginHeader"), "The request has an origin header: '{origin}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RequestDoesNotHaveOriginHeader"), "The request does not have an origin header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "PolicySuccess"), "CORS policy execution successful.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(5, "PolicyFailure"), "CORS policy execution failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "OriginNotAllowed"), "Request origin {origin} does not have permission to access the resource.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(7, "AccessControlMethodNotAllowed"), "Request method {accessControlRequestMethod} not allowed in CORS policy.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(8, "RequestHeaderNotAllowed"), "Request header '{requestHeader}' not allowed in CORS policy.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "FailedToSetCorsHeaders"), "Failed to apply CORS Response headers.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "NoCorsPolicyFound"), "No CORS policy found for the specified request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "IsNotPreflightRequest"), "This request uses the HTTP OPTIONS method but does not have an Access-Control-Request-Method header. This request will not be treated as a CORS preflight request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
CORSLoggerExtensions.cs (11)
10[LoggerMessage(1, LogLevel.Debug, "The request is a preflight request.", EventName = "IsPreflightRequest")] 13[LoggerMessage(2, LogLevel.Debug, "The request has an origin header: '{origin}'.", EventName = "RequestHasOriginHeader")] 16[LoggerMessage(3, LogLevel.Debug, "The request does not have an origin header.", EventName = "RequestDoesNotHaveOriginHeader")] 19[LoggerMessage(4, LogLevel.Information, "CORS policy execution successful.", EventName = "PolicySuccess")] 22[LoggerMessage(5, LogLevel.Information, "CORS policy execution failed.", EventName = "PolicyFailure")] 25[LoggerMessage(6, LogLevel.Information, "Request origin {origin} does not have permission to access the resource.", EventName = "OriginNotAllowed")] 28[LoggerMessage(7, LogLevel.Information, "Request method {accessControlRequestMethod} not allowed in CORS policy.", EventName = "AccessControlMethodNotAllowed")] 31[LoggerMessage(8, LogLevel.Information, "Request header '{requestHeader}' not allowed in CORS policy.", EventName = "RequestHeaderNotAllowed")] 34[LoggerMessage(9, LogLevel.Warning, "Failed to apply CORS Response headers.", EventName = "FailedToSetCorsHeaders")] 37[LoggerMessage(10, LogLevel.Information, "No CORS policy found for the specified request.", EventName = "NoCorsPolicyFound")] 40[LoggerMessage(12, LogLevel.Debug, "This request uses the HTTP OPTIONS method but does not have an Access-Control-Request-Method header. This request will not be treated as a CORS preflight request.", EventName = "IsNotPreflightRequest")]
Microsoft.AspNetCore.DataProtection (241)
_generated\0\LoggerMessage.g.cs (158)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "UsingFallbackKeyWithExpirationAsDefaultKey"), "Policy resolution states that a new key should be added to the key ring, but automatic generation of keys is disabled. Using fallback key {KeyId:B} with expiration {ExpirationDate:u} as default key.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "UsingKeyAsDefaultKey"), "Using key {KeyId:B} as the default key.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "OpeningCNGAlgorithmFromProviderWithHMAC"), "Opening CNG algorithm '{HashAlgorithm}' from provider '{HashAlgorithmProvider}' with HMAC.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "OpeningCNGAlgorithmFromProviderWithChainingModeCBC"), "Opening CNG algorithm '{EncryptionAlgorithm}' from provider '{EncryptionAlgorithmProvider}' with chaining mode CBC.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "PerformingUnprotectOperationToKeyWithPurposes"), "Performing unprotect operation to key {KeyId:B} with purposes {Purposes}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "KeyWasNotFoundInTheKeyRingUnprotectOperationCannotProceed"), "Key {KeyId:B} was not found in the key ring. Unprotect operation cannot proceed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "KeyWasRevokedCallerRequestedUnprotectOperationProceedRegardless"), "Key {KeyId:B} was revoked. Caller requested unprotect operation proceed regardless.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "KeyWasRevokedUnprotectOperationCannotProceed"), "Key {KeyId:B} was revoked. Unprotect operation cannot proceed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "OpeningCNGAlgorithmFromProviderWithChainingModeGCM"), "Opening CNG algorithm '{EncryptionAlgorithm}' from provider '{EncryptionAlgorithmProvider}' with chaining mode GCM.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "UsingManagedKeyedHashAlgorithm"), "Using managed keyed hash algorithm '{FullName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "UsingManagedSymmetricAlgorithm"), "Using managed symmetric algorithm '{FullName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(12, "KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed"), "Key {KeyId:B} is ineligible to be the default key because its {MethodName} method failed after the maximum number of retries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "ConsideringKeyWithExpirationDateAsDefaultKey"), "Considering key {KeyId:B} with expiration date {ExpirationDate:u} as default key.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "KeyIsNoLongerUnderConsiderationAsDefault"), "Key {KeyId:B} is no longer under consideration as default key because it is expired, revoked, or cannot be deciphered.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 234global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Xml.Linq.XName>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(15, "UnknownElementWithNameFoundInKeyringSkipping"), "Unknown element with name '{Name}' found in keyring, skipping.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 243if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 250global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "MarkedKeyAsRevokedInTheKeyring"), "Marked key {KeyId:B} as revoked in the keyring.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 259if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 266global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "TriedToProcessRevocationOfKeyButNoSuchKeyWasFound"), "Tried to process revocation of key {KeyId:B}, but no such key was found in keyring. Skipping.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 275if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 282global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "FoundKey"), "Found key {KeyId:B}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 291if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 298global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "FoundRevocationOfAllKeysCreatedPriorTo"), "Found revocation of all keys created prior to {RevocationDate:u}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 307if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 314global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "FoundRevocationOfKey"), "Found revocation of key {KeyId:B}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 323if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 330global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Xml.Linq.XElement>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(21, "ExceptionWhileProcessingRevocationElement"), "An exception occurred while processing the revocation element '{RevocationElement}'. Cannot continue keyring processing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 339if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 346global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(22, "RevokingAllKeysAsOfForReason"), "Revoking all keys as of {RevocationDate:u} for reason '{Reason}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 355if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 362global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "KeyCacheExpirationTokenTriggeredByOperation"), "Key cache expiration token triggered by '{OperationName}' operation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 371if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 378global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Xml.Linq.XElement>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(24, "ExceptionOccurredWhileProcessingTheKeyElement"), "An exception occurred while processing the key element '{Element}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 387if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 394global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Xml.Linq.XElement>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(25, "ExceptionOccurredWhileProcessingTheKeyElementDebug"), "An exception occurred while processing the key element '{Element}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 403if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 410global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(26, "EncryptingToWindowsDPAPIForCurrentUserAccount"), "Encrypting to Windows DPAPI for current user account ({Name}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 419if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 426global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(28, "ErrorOccurredWhileEncryptingToX509CertificateWithThumbprint"), "An error occurred while encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 435if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 442global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(29, "EncryptingToX509CertificateWithThumbprint"), "Encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 451if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 458global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(30, "ExceptionOccurredWhileTryingToResolveCertificateWithThumbprint"), "An exception occurred while trying to resolve certificate with thumbprint '{Thumbprint}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 467if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 474global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(31, "PerformingProtectOperationToKeyWithPurposes"), "Performing protect operation to key {KeyId:B} with purposes {Purposes}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 483if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 490global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(32, "DescriptorDeserializerTypeForKeyIs"), "Descriptor deserializer type for key {KeyId:B} is '{AssemblyQualifiedName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 499if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 506global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(33, "KeyEscrowSinkFoundWritingKeyToEscrow"), "Key escrow sink found. Writing key {KeyId:B} to escrow.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 515if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 522global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(34, "NoKeyEscrowSinkFoundNotWritingKeyToEscrow"), "No key escrow sink found. Not writing key {KeyId:B} to escrow.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 531if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 538global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(35, "NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"), "No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 547if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 554global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, global::System.DateTimeOffset, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(36, "RevokingKeyForReason"), "Revoking key {KeyId:B} at {RevocationDate:u} for reason '{Reason}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 563if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 570global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(37, "ReadingDataFromFile"), "Reading data from file '{FullPath}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 579if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 586global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(38, "NameIsNotSafeFileName"), "The name '{FriendlyName}' is not a safe file name, using '{NewFriendlyName}' instead.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 595if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 602global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(39, "WritingDataToFile"), "Writing data to file '{FileName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 611if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 618global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Win32.RegistryKey, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(40, "ReadingDataFromRegistryKeyValue"), "Reading data from registry key '{RegistryKeyName}', value '{Value}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 627if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 634global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(41, "NameIsNotSafeRegistryValueName"), "The name '{FriendlyName}' is not a safe registry value name, using '{NewFriendlyName}' instead.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 643if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 650global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(42, "DecryptingSecretElementUsingWindowsDPAPING"), "Decrypting secret element using Windows DPAPI-NG with protection descriptor rule '{DescriptorRule}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 659if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 666global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(27, "EncryptingToWindowsDPAPINGUsingProtectionDescriptorRule"), "Encrypting to Windows DPAPI-NG using protection descriptor rule '{DescriptorRule}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 675if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 682global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(43, "ExceptionOccurredTryingToDecryptElement"), "An exception occurred while trying to decrypt the element.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 691if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 698global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(44, "EncryptingUsingNullEncryptor"), "Encrypting using a null encryptor; secret information isn't being protected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 707if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 714global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(45, "UsingEphemeralDataProtectionProvider"), "Using ephemeral data protection provider. Payloads will be undecipherable upon application shutdown.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 723if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 730global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(46, "ExistingCachedKeyRingIsExpiredRefreshing"), "Existing cached key ring is expired. Refreshing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 739if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 746global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(47, "ErrorOccurredWhileRefreshingKeyRing"), "An error occurred while refreshing the key ring. Will try again in 2 minutes.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 755if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 762global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(48, "ErrorOccurredWhileReadingKeyRing"), "An error occurred while reading the key ring.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 771if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 778global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(49, "KeyRingDoesNotContainValidDefaultKey"), "The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. For more information go to http://aka.ms/dataprotectionwarning", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 787if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 794global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(50, "UsingInMemoryRepository"), "Using an in-memory repository. Keys will not be persisted to storage.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 803if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 810global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(51, "DecryptingSecretElementUsingWindowsDPAPI"), "Decrypting secret element using Windows DPAPI.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 819if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 826global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(52, "DefaultKeyExpirationImminentAndRepository"), "Default key expiration imminent and repository contains no viable successor. Caller should generate a successor.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 835if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 842global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(53, "RepositoryContainsNoViableDefaultKey"), "Repository contains no viable default key. Caller should generate a key with immediate activation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 851if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 858global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(54, "ErrorOccurredWhileEncryptingToWindowsDPAPI"), "An error occurred while encrypting to Windows DPAPI.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 867if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 874global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(55, "EncryptingToWindowsDPAPIForLocalMachineAccount"), "Encrypting to Windows DPAPI for local machine account.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 883if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 890global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(56, "ErrorOccurredWhileEncryptingToWindowsDPAPING"), "An error occurred while encrypting to Windows DPAPI-NG.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 899if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 906global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(57, "PolicyResolutionStatesThatANewKeyShouldBeAddedToTheKeyRing"), "Policy resolution states that a new key should be added to the key ring.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 915if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 922global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(58, "CreatingKey"), "Creating key {KeyId:B} with creation date {CreationDate:u}, activation date {ActivationDate:u}, and expiration date {ExpirationDate:u}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 931if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 938global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(59, "UsingEphemeralKeyRepository"), "Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 947if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 954global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(61, "UsingRegistryAsKeyRepositoryWithDPAPI"), "User profile not available. Using '{Name}' as key repository and Windows DPAPI to encrypt keys at rest.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 963if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 970global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(62, "UsingProfileAsKeyRepository"), "User profile is available. Using '{FullName}' as key repository; keys will not be encrypted at rest.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 979if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 986global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(63, "UsingProfileAsKeyRepositoryWithDPAPI"), "User profile is available. Using '{FullName}' as key repository and Windows DPAPI to encrypt keys at rest.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 995if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1002global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(64, "UsingAzureAsKeyRepository"), "Azure Web Sites environment detected. Using '{FullName}' as key repository; keys will not be encrypted at rest.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1011if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1018global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(65, "KeyRingWasLoadedOnStartup"), "Key ring with default key {KeyId:B} was loaded during application startup.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1027if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1034global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(66, "KeyRingFailedToLoadOnStartup"), "Key ring failed to load during application startup.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1043if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1050global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(60, "UsingEphemeralFileSystemLocationInContainer"), "Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1059if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1066global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(61, "IgnoringReadOnlyConfigurationForNonDefaultOptions"), "Ignoring configuration '{PropertyName}' for options instance '{OptionsName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1075if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 1082global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(62, "UsingReadOnlyKeyConfiguration"), "Enabling read-only key access with repository directory '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1091if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1098global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(63, "NotUsingReadOnlyKeyConfigurationBecauseOfRepository"), "Not enabling read-only key access because an XML repository has been specified", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1107if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1114global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(64, "NotUsingReadOnlyKeyConfigurationBecauseOfEncryptor"), "Not enabling read-only key access because an XML encryptor has been specified", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1123if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1130global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(72, "KeyRingDefaultKeyIsRevoked"), "The key ring's default data protection key {KeyId:B} has been revoked.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1139if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1146global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(73, "RetryingMethodOfKeyAfterFailure"), "Key {KeyId:B} method {MethodName} failed. Retrying.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1155if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1162global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(74, "DeletingFile"), "Deleting file '{FileName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1171if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1178global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(75, "FailedToDeleteFile"), "Failed to delete file '{FileName}'. Not attempting further deletions.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1187if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1194global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Win32.RegistryKey, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(76, "RemovingDataFromRegistryKeyValue"), "Deleting registry key '{RegistryKeyName}', value '{Value}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1203if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1210global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Win32.RegistryKey, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(77, "FailedToRemoveDataFromRegistryKeyValue"), "Failed to delete registry key '{RegistryKeyName}', value '{ValueName}'. Not attempting further deletions.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1219if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1226global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(78, "KeyRevokedMultipleTimes"), "Found multiple revocation entries for key {KeyId:B}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1235if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 1242global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(79, "DateBasedRevocationSuperseded"), "Ignoring revocation of keys created before {OlderDate:u} in favor of revocation of keys created before {NewerDate:u}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1251if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 1258global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(80, "DeletingKey"), "Deleting key {KeyId:B}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1267if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggingExtensions.cs (82)
24return IsLogLevelEnabledCore(logger, LogLevel.Debug); 34return IsLogLevelEnabledCore(logger, LogLevel.Trace); 38private static bool IsLogLevelEnabledCore([NotNullWhen(true)] ILogger? logger, LogLevel level) 43[LoggerMessage(1, LogLevel.Warning, "Policy resolution states that a new key should be added to the key ring, but automatic generation of keys is disabled. Using fallback key {KeyId:B} with expiration {ExpirationDate:u} as default key.", EventName = "UsingFallbackKeyWithExpirationAsDefaultKey")] 46[LoggerMessage(2, LogLevel.Debug, "Using key {KeyId:B} as the default key.", EventName = "UsingKeyAsDefaultKey")] 49[LoggerMessage(3, LogLevel.Debug, "Opening CNG algorithm '{HashAlgorithm}' from provider '{HashAlgorithmProvider}' with HMAC.", EventName = "OpeningCNGAlgorithmFromProviderWithHMAC")] 52[LoggerMessage(4, LogLevel.Debug, "Opening CNG algorithm '{EncryptionAlgorithm}' from provider '{EncryptionAlgorithmProvider}' with chaining mode CBC.", EventName = "OpeningCNGAlgorithmFromProviderWithChainingModeCBC")] 55[LoggerMessage(5, LogLevel.Trace, "Performing unprotect operation to key {KeyId:B} with purposes {Purposes}.", EventName = "PerformingUnprotectOperationToKeyWithPurposes")] 58[LoggerMessage(6, LogLevel.Trace, "Key {KeyId:B} was not found in the key ring. Unprotect operation cannot proceed.", EventName = "KeyWasNotFoundInTheKeyRingUnprotectOperationCannotProceed")] 61[LoggerMessage(7, LogLevel.Debug, "Key {KeyId:B} was revoked. Caller requested unprotect operation proceed regardless.", EventName = "KeyWasRevokedCallerRequestedUnprotectOperationProceedRegardless")] 64[LoggerMessage(8, LogLevel.Debug, "Key {KeyId:B} was revoked. Unprotect operation cannot proceed.", EventName = "KeyWasRevokedUnprotectOperationCannotProceed")] 67[LoggerMessage(9, LogLevel.Debug, "Opening CNG algorithm '{EncryptionAlgorithm}' from provider '{EncryptionAlgorithmProvider}' with chaining mode GCM.", EventName = "OpeningCNGAlgorithmFromProviderWithChainingModeGCM")] 70[LoggerMessage(10, LogLevel.Debug, "Using managed keyed hash algorithm '{FullName}'.", EventName = "UsingManagedKeyedHashAlgorithm")] 73[LoggerMessage(11, LogLevel.Debug, "Using managed symmetric algorithm '{FullName}'.", EventName = "UsingManagedSymmetricAlgorithm")] 76[LoggerMessage(12, LogLevel.Warning, "Key {KeyId:B} is ineligible to be the default key because its {MethodName} method failed after the maximum number of retries.", EventName = "KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed")] 79[LoggerMessage(13, LogLevel.Debug, "Considering key {KeyId:B} with expiration date {ExpirationDate:u} as default key.", EventName = "ConsideringKeyWithExpirationDateAsDefaultKey")] 82[LoggerMessage(14, LogLevel.Debug, "Key {KeyId:B} is no longer under consideration as default key because it is expired, revoked, or cannot be deciphered.", EventName = "KeyIsNoLongerUnderConsiderationAsDefault")] 85[LoggerMessage(15, LogLevel.Warning, "Unknown element with name '{Name}' found in keyring, skipping.", EventName = "UnknownElementWithNameFoundInKeyringSkipping")] 88[LoggerMessage(16, LogLevel.Debug, "Marked key {KeyId:B} as revoked in the keyring.", EventName = "MarkedKeyAsRevokedInTheKeyring")] 91[LoggerMessage(17, LogLevel.Warning, "Tried to process revocation of key {KeyId:B}, but no such key was found in keyring. Skipping.", EventName = "TriedToProcessRevocationOfKeyButNoSuchKeyWasFound")] 94[LoggerMessage(18, LogLevel.Debug, "Found key {KeyId:B}.", EventName = "FoundKey")] 97[LoggerMessage(19, LogLevel.Debug, "Found revocation of all keys created prior to {RevocationDate:u}.", EventName = "FoundRevocationOfAllKeysCreatedPriorTo")] 100[LoggerMessage(20, LogLevel.Debug, "Found revocation of key {KeyId:B}.", EventName = "FoundRevocationOfKey")] 103[LoggerMessage(21, LogLevel.Error, "An exception occurred while processing the revocation element '{RevocationElement}'. Cannot continue keyring processing.", EventName = "ExceptionWhileProcessingRevocationElement")] 106[LoggerMessage(22, LogLevel.Information, "Revoking all keys as of {RevocationDate:u} for reason '{Reason}'.", EventName = "RevokingAllKeysAsOfForReason")] 109[LoggerMessage(23, LogLevel.Debug, "Key cache expiration token triggered by '{OperationName}' operation.", EventName = "KeyCacheExpirationTokenTriggeredByOperation")] 112[LoggerMessage(24, LogLevel.Error, "An exception occurred while processing the key element '{Element}'.", EventName = "ExceptionOccurredWhileProcessingTheKeyElement")] 115[LoggerMessage(25, LogLevel.Trace, "An exception occurred while processing the key element '{Element}'.", EventName = "ExceptionOccurredWhileProcessingTheKeyElementDebug")] 118[LoggerMessage(26, LogLevel.Debug, "Encrypting to Windows DPAPI for current user account ({Name}).", EventName = "EncryptingToWindowsDPAPIForCurrentUserAccount")] 121[LoggerMessage(28, LogLevel.Error, "An error occurred while encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", EventName = "ErrorOccurredWhileEncryptingToX509CertificateWithThumbprint")] 124[LoggerMessage(29, LogLevel.Debug, "Encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", EventName = "EncryptingToX509CertificateWithThumbprint")] 127[LoggerMessage(30, LogLevel.Error, "An exception occurred while trying to resolve certificate with thumbprint '{Thumbprint}'.", EventName = "ExceptionOccurredWhileTryingToResolveCertificateWithThumbprint")] 130[LoggerMessage(31, LogLevel.Trace, "Performing protect operation to key {KeyId:B} with purposes {Purposes}.", EventName = "PerformingProtectOperationToKeyWithPurposes")] 133[LoggerMessage(32, LogLevel.Debug, "Descriptor deserializer type for key {KeyId:B} is '{AssemblyQualifiedName}'.", EventName = "DescriptorDeserializerTypeForKeyIs")] 136[LoggerMessage(33, LogLevel.Debug, "Key escrow sink found. Writing key {KeyId:B} to escrow.", EventName = "KeyEscrowSinkFoundWritingKeyToEscrow")] 139[LoggerMessage(34, LogLevel.Debug, "No key escrow sink found. Not writing key {KeyId:B} to escrow.", EventName = "NoKeyEscrowSinkFoundNotWritingKeyToEscrow")] 142[LoggerMessage(35, LogLevel.Warning, "No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.", EventName = "NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm")] 145[LoggerMessage(36, LogLevel.Information, "Revoking key {KeyId:B} at {RevocationDate:u} for reason '{Reason}'.", EventName = "RevokingKeyForReason")] 148[LoggerMessage(37, LogLevel.Debug, "Reading data from file '{FullPath}'.", EventName = "ReadingDataFromFile")] 151[LoggerMessage(38, LogLevel.Debug, "The name '{FriendlyName}' is not a safe file name, using '{NewFriendlyName}' instead.", EventName = "NameIsNotSafeFileName")] 154[LoggerMessage(39, LogLevel.Information, "Writing data to file '{FileName}'.", EventName = "WritingDataToFile")] 157[LoggerMessage(40, LogLevel.Debug, "Reading data from registry key '{RegistryKeyName}', value '{Value}'.", EventName = "ReadingDataFromRegistryKeyValue")] 160[LoggerMessage(41, LogLevel.Debug, "The name '{FriendlyName}' is not a safe registry value name, using '{NewFriendlyName}' instead.", EventName = "NameIsNotSafeRegistryValueName")] 163[LoggerMessage(42, LogLevel.Debug, "Decrypting secret element using Windows DPAPI-NG with protection descriptor rule '{DescriptorRule}'.", EventName = "DecryptingSecretElementUsingWindowsDPAPING")] 166[LoggerMessage(27, LogLevel.Debug, "Encrypting to Windows DPAPI-NG using protection descriptor rule '{DescriptorRule}'.", EventName = "EncryptingToWindowsDPAPINGUsingProtectionDescriptorRule")] 169[LoggerMessage(43, LogLevel.Error, "An exception occurred while trying to decrypt the element.", EventName = "ExceptionOccurredTryingToDecryptElement")] 172[LoggerMessage(44, LogLevel.Warning, "Encrypting using a null encryptor; secret information isn't being protected.", EventName = "EncryptingUsingNullEncryptor")] 175[LoggerMessage(45, LogLevel.Information, "Using ephemeral data protection provider. Payloads will be undecipherable upon application shutdown.", EventName = "UsingEphemeralDataProtectionProvider")] 178[LoggerMessage(46, LogLevel.Debug, "Existing cached key ring is expired. Refreshing.", EventName = "ExistingCachedKeyRingIsExpiredRefreshing")] 181[LoggerMessage(47, LogLevel.Error, "An error occurred while refreshing the key ring. Will try again in 2 minutes.", EventName = "ErrorOccurredWhileRefreshingKeyRing")] 184[LoggerMessage(48, LogLevel.Error, "An error occurred while reading the key ring.", EventName = "ErrorOccurredWhileReadingKeyRing")] 187[LoggerMessage(49, LogLevel.Error, "The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. For more information go to http://aka.ms/dataprotectionwarning", EventName = "KeyRingDoesNotContainValidDefaultKey")] 190[LoggerMessage(50, LogLevel.Warning, "Using an in-memory repository. Keys will not be persisted to storage.", EventName = "UsingInMemoryRepository")] 193[LoggerMessage(51, LogLevel.Debug, "Decrypting secret element using Windows DPAPI.", EventName = "DecryptingSecretElementUsingWindowsDPAPI")] 196[LoggerMessage(52, LogLevel.Debug, "Default key expiration imminent and repository contains no viable successor. Caller should generate a successor.", EventName = "DefaultKeyExpirationImminentAndRepository")] 199[LoggerMessage(53, LogLevel.Debug, "Repository contains no viable default key. Caller should generate a key with immediate activation.", EventName = "RepositoryContainsNoViableDefaultKey")] 202[LoggerMessage(54, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPI")] 205[LoggerMessage(55, LogLevel.Debug, "Encrypting to Windows DPAPI for local machine account.", EventName = "EncryptingToWindowsDPAPIForLocalMachineAccount")] 208[LoggerMessage(56, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI-NG.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPING")] 211[LoggerMessage(57, LogLevel.Debug, "Policy resolution states that a new key should be added to the key ring.", EventName = "PolicyResolutionStatesThatANewKeyShouldBeAddedToTheKeyRing")] 214[LoggerMessage(58, LogLevel.Information, "Creating key {KeyId:B} with creation date {CreationDate:u}, activation date {ActivationDate:u}, and expiration date {ExpirationDate:u}.", EventName = "CreatingKey")] 217[LoggerMessage(59, LogLevel.Warning, "Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.", EventName = "UsingEphemeralKeyRepository")] 220[LoggerMessage(61, LogLevel.Information, "User profile not available. Using '{Name}' as key repository and Windows DPAPI to encrypt keys at rest.", EventName = "UsingRegistryAsKeyRepositoryWithDPAPI")] 223[LoggerMessage(62, LogLevel.Information, "User profile is available. Using '{FullName}' as key repository; keys will not be encrypted at rest.", EventName = "UsingProfileAsKeyRepository")] 226[LoggerMessage(63, LogLevel.Information, "User profile is available. Using '{FullName}' as key repository and Windows DPAPI to encrypt keys at rest.", EventName = "UsingProfileAsKeyRepositoryWithDPAPI")] 229[LoggerMessage(64, LogLevel.Information, "Azure Web Sites environment detected. Using '{FullName}' as key repository; keys will not be encrypted at rest.", EventName = "UsingAzureAsKeyRepository")] 232[LoggerMessage(65, LogLevel.Debug, "Key ring with default key {KeyId:B} was loaded during application startup.", EventName = "KeyRingWasLoadedOnStartup")] 235[LoggerMessage(66, LogLevel.Information, "Key ring failed to load during application startup.", EventName = "KeyRingFailedToLoadOnStartup")] 238[LoggerMessage(60, LogLevel.Warning, "Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning", EventName = "UsingEphemeralFileSystemLocationInContainer")] 241[LoggerMessage(61, LogLevel.Trace, "Ignoring configuration '{PropertyName}' for options instance '{OptionsName}'", EventName = "IgnoringReadOnlyConfigurationForNonDefaultOptions")] 244[LoggerMessage(62, LogLevel.Information, "Enabling read-only key access with repository directory '{Path}'", EventName = "UsingReadOnlyKeyConfiguration")] 247[LoggerMessage(63, LogLevel.Debug, "Not enabling read-only key access because an XML repository has been specified", EventName = "NotUsingReadOnlyKeyConfigurationBecauseOfRepository")] 250[LoggerMessage(64, LogLevel.Debug, "Not enabling read-only key access because an XML encryptor has been specified", EventName = "NotUsingReadOnlyKeyConfigurationBecauseOfEncryptor")] 253[LoggerMessage(72, LogLevel.Error, "The key ring's default data protection key {KeyId:B} has been revoked.", EventName = "KeyRingDefaultKeyIsRevoked")] 256[LoggerMessage(73, LogLevel.Debug, "Key {KeyId:B} method {MethodName} failed. Retrying.", EventName = "RetryingMethodOfKeyAfterFailure")] 259[LoggerMessage(74, LogLevel.Debug, "Deleting file '{FileName}'.", EventName = "DeletingFile")] 262[LoggerMessage(75, LogLevel.Error, "Failed to delete file '{FileName}'. Not attempting further deletions.", EventName = "FailedToDeleteFile")] 265[LoggerMessage(76, LogLevel.Debug, "Deleting registry key '{RegistryKeyName}', value '{Value}'.", EventName = "RemovingDataFromRegistryKeyValue")] 268[LoggerMessage(77, LogLevel.Error, "Failed to delete registry key '{RegistryKeyName}', value '{ValueName}'. Not attempting further deletions.", EventName = "FailedToRemoveDataFromRegistryKeyValue")] 271[LoggerMessage(78, LogLevel.Trace, "Found multiple revocation entries for key {KeyId:B}.", EventName = "KeyRevokedMultipleTimes")] 274[LoggerMessage(79, LogLevel.Trace, "Ignoring revocation of keys created before {OlderDate:u} in favor of revocation of keys created before {NewerDate:u}.", EventName = "DateBasedRevocationSuperseded")] 277[LoggerMessage(80, LogLevel.Debug, "Deleting key {KeyId:B}.", EventName = "DeletingKey")]
TypeForwardingActivator.cs (1)
42if (_logger.IsEnabled(LogLevel.Debug))
Microsoft.AspNetCore.Diagnostics (21)
_generated\0\LoggerMessage.g.cs (14)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ResponseStarted"), "The response has already started, the error page middleware will not be executed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(3, "DisplayErrorPageException"), "An exception was thrown attempting to display the error page.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 48global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(1, "UnhandledException"), "An unhandled exception has occurred while executing the request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 57if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 64global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "RequestAborted"), "The request was aborted by the client.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 73if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 80global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ResponseStarted"), "The response has already started, the error handler will not be executed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 89if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 96global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(3, "Exception"), "An exception was thrown attempting to execute the error handler.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 105if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 118global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "FailedToReadStackTraceInfo"), "Failed to read stack trace information for exception.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 127if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
DiagnosticsLoggerExtensions.cs (6)
11[LoggerMessage(1, LogLevel.Error, "An unhandled exception has occurred while executing the request.", EventName = "UnhandledException")] 14[LoggerMessage(4, LogLevel.Debug, "The request was aborted by the client.", EventName = "RequestAborted")] 18[LoggerMessage(2, LogLevel.Warning, "The response has already started, the error handler will not be executed.", EventName = "ResponseStarted")] 21[LoggerMessage(3, LogLevel.Error, "An exception was thrown attempting to execute the error handler.", EventName = "Exception")] 27[LoggerMessage(2, LogLevel.Warning, "The response has already started, the error page middleware will not be executed.", EventName = "ResponseStarted")] 30[LoggerMessage(3, LogLevel.Error, "An exception was thrown attempting to display the error page.", EventName = "DisplayErrorPageException")]
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\LoggerExtensions.cs (1)
10[LoggerMessage(0, LogLevel.Debug, "Failed to read stack trace information for exception.", EventName = "FailedToReadStackTraceInfo")]
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Buffering\PerIncomingRequestLoggingBuilderExtensions.cs (1)
91public static ILoggingBuilder AddPerIncomingRequestBuffer(this ILoggingBuilder builder, LogLevel? logLevel = null)
Log.cs (1)
11[LoggerMessage(0, LogLevel.Warning, "Enricher failed: {Enricher}.")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (77)
Buffering\PerIncomingRequestLoggingBuilderExtensionsTests.cs (11)
32builder.AddPerIncomingRequestBuffer(LogLevel.Warning); 48Assert.Throws<ArgumentNullException>(() => builder!.AddPerIncomingRequestBuffer(LogLevel.Warning)); 57new(categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 58new(logLevel: LogLevel.Information), 77new(categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 78new(logLevel: LogLevel.Information), 84logLevel: LogLevel.Information, eventId: 1, eventName: "number one")); 85options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Information)); 99new(categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 100new(logLevel : LogLevel.Information), 104new(logLevel: LogLevel.Information),
Buffering\PerRequestLogBufferingOptionsConfigureOptionsTests.cs (3)
94Assert.Equal(LogLevel.Information, options.Rules[0].LogLevel); 122Assert.Equal(LogLevel.Warning, options.Rules[0].LogLevel); 124Assert.Equal(LogLevel.Error, options.Rules[1].LogLevel);
Logging\AcceptanceTests.cs (50)
143private static Task RunAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func) 147LogLevel level, 154.AddFilter("Microsoft.Hosting", LogLevel.Warning) 155.AddFilter("Microsoft.Extensions.Hosting", LogLevel.Warning) 156.AddFilter("Microsoft.AspNetCore", LogLevel.Warning) 205LogLevel.Information, 224Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 265LogLevel.Information, 284Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 318LogLevel.Information, 337Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 360LogLevel.Information, 392Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 431LogLevel.Information, 454Assert.Equal(LogLevel.Information, lastRecord.Level); 485LogLevel.Information, 500Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 523LogLevel.Information, 542Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 557LogLevel.Information, 573Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 594LogLevel.Information, 611Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 651LogLevel.Information, 659Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 682LogLevel.Information, 700Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 719LogLevel.Information, 734Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 751LogLevel.Error, 779LogLevel.Information, 807LogLevel.Trace, 814builder.AddFilter("Microsoft.AspNetCore.Routing.Matching.DfaMatcher", LogLevel.Debug); 818builder.AddFilter("Microsoft.AspNetCore.HttpLogging", LogLevel.None); 820builder.AddPerIncomingRequestBuffer(LogLevel.Debug); 829Assert.Equal(LogLevel.Debug, logCollector.LatestRecord.Level); 842Assert.Equal(LogLevel.Trace, logCollector.LatestRecord.Level); 851LogLevel.Trace, 858builder.AddFilter("Microsoft.AspNetCore.Routing.Matching.DfaMatcher", LogLevel.Debug); 862builder.AddFilter("Microsoft.AspNetCore.HttpLogging", LogLevel.None); 867options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Debug)); 890Assert.Equal(LogLevel.Trace, logCollector.LatestRecord.Level); 899LogLevel.Trace, 905builder.AddFilter("Microsoft.AspNetCore", LogLevel.None); 906builder.AddFilter("Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware", LogLevel.None); 912options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Debug)); 913options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Debug, categoryName: "logatrequest")); 947Assert.Equal(LogLevel.Trace, logCollector.LatestRecord.Level); 956LogLevel.Information, 976LogLevel.Debug,
Logging\AcceptanceTests.Mvc.cs (11)
51private static Task RunControllerAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func) 60LogLevel.Information, 75Assert.Equal(LogLevel.Information, logRecord.Level); 95LogLevel.Information, 110Assert.Equal(LogLevel.Information, logRecord.Level); 134LogLevel.Information, 156Assert.Equal(LogLevel.Information, logRecord.Level); 185LogLevel.Information, 200Assert.Equal(LogLevel.Information, logRecord.Level); 223LogLevel.Information, 241Assert.Equal(LogLevel.Information, logRecord.Level);
Logging\AcceptanceTests.Routing.cs (2)
61LogLevel.Information, 75Assert.Equal(LogLevel.Information, logRecord.Level);
Microsoft.AspNetCore.HeaderParsing (3)
HeaderParsingFeature.cs (3)
197[LoggerMessage(LogLevel.Debug, "Can't parse header '{HeaderName}' due to '{Error}'.")] 200[LoggerMessage(LogLevel.Debug, "Using a default value for header '{HeaderName}'.")] 203[LoggerMessage(LogLevel.Debug, "Header '{HeaderName}' not found.")]
Microsoft.AspNetCore.HostFiltering (25)
_generated\0\LoggerMessage.g.cs (15)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "WildcardDetected"), "Wildcard detected, all requests with hosts will be allowed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "AllowedHosts"), "Allowed hosts: {Hosts}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 39global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(2, "AllHostsAllowed"), "All hosts are allowed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 48if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 55global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(3, "RequestRejectedMissingHost"), "{Protocol} request rejected due to missing or empty host header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 64if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 71global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "RequestAllowedMissingHost"), "{Protocol} request allowed with missing or empty host header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 80if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 87global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "AllowedHostMatched"), "The host '{Host}' matches an allowed host.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 96if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 103global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "NoAllowedHostMatched"), "The host '{Host}' does not match an allowed host.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 112if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 119global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "MiddlewareConfigurationStarted"), "Middleware configuration started with options: {Options}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 128if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggerExtensions.cs (8)
10[LoggerMessage(0, LogLevel.Debug, "Wildcard detected, all requests with hosts will be allowed.", EventName = "WildcardDetected")] 13[LoggerMessage(1, LogLevel.Debug, "Allowed hosts: {Hosts}", EventName = "AllowedHosts", SkipEnabledCheck = true)] 16[LoggerMessage(2, LogLevel.Trace, "All hosts are allowed.", EventName = "AllHostsAllowed")] 19[LoggerMessage(3, LogLevel.Information, "{Protocol} request rejected due to missing or empty host header.", EventName = "RequestRejectedMissingHost")] 22[LoggerMessage(4, LogLevel.Debug, "{Protocol} request allowed with missing or empty host header.", EventName = "RequestAllowedMissingHost")] 25[LoggerMessage(5, LogLevel.Trace, "The host '{Host}' matches an allowed host.", EventName = "AllowedHostMatched")] 28[LoggerMessage(6, LogLevel.Information, "The host '{Host}' does not match an allowed host.", EventName = "NoAllowedHostMatched")] 31[LoggerMessage(7, LogLevel.Debug, "Middleware configuration started with options: {Options}", EventName = "MiddlewareConfigurationStarted")]
MiddlewareConfigurationManager.cs (2)
42if (_logger.IsEnabled(LogLevel.Debug)) 53if (_logger.IsEnabled(LogLevel.Debug))
Microsoft.AspNetCore.Hosting (32)
_generated\0\LoggerMessage.g.cs (14)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(14, "ListeningOnAddress"), "Now listening on: {address}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "HostingStartupAssemblyLoaded"), "Loaded hosting startup assembly {assemblyName}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 50global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "Starting"), "Hosting starting", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 59if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 66global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "Started"), "Hosting started", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 75if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 82global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "Shutdown"), "Hosting shutdown", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 91if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 98global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "ServerShutdownException"), "Server shutdown exception", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 107if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 114global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "HostingStartupAssemblyLoaded"), "Loaded hosting startup assembly {assemblyName}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 134global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "FailedToReadStackTraceInfo"), "Failed to read stack trace information for exception.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 143if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
GenericHost\GenericWebHostService.cs (4)
169if (LifetimeLogger.IsEnabled(LogLevel.Information)) 180if (Logger.IsEnabled(LogLevel.Debug)) 211[LoggerMessage(14, LogLevel.Information, 216[LoggerMessage(13, LogLevel.Debug,
Internal\HostingApplicationDiagnostics.cs (5)
106var loggingEnabled = _logger.IsEnabled(LogLevel.Critical); 140if (_logger.IsEnabled(LogLevel.Information)) 276logLevel: LogLevel.Information, 294logLevel: LogLevel.Information, 306logLevel: LogLevel.Information,
Internal\HostingLoggerExtensions.cs (1)
48if (logger.IsEnabled(LogLevel.Warning))
Internal\WebHost.cs (6)
156if (_logger.IsEnabled(LogLevel.Debug)) 352[LoggerMessage(3, LogLevel.Debug, "Hosting starting", EventName = "Starting")] 355[LoggerMessage(4, LogLevel.Debug, "Hosting started", EventName = "Started")] 358[LoggerMessage(5, LogLevel.Debug, "Hosting shutdown", EventName = "Shutdown")] 361[LoggerMessage(12, LogLevel.Debug, "Server shutdown exception", EventName = "ServerShutdownException")] 364[LoggerMessage(13, LogLevel.Debug,
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\LoggerExtensions.cs (1)
10[LoggerMessage(0, LogLevel.Debug, "Failed to read stack trace information for exception.", EventName = "FailedToReadStackTraceInfo")]
WebHostBuilder.cs (1)
184if (!assemblyNames.Add(assemblyName) && logger.IsEnabled(LogLevel.Warning))
Microsoft.AspNetCore.Http (6)
_generated\0\LoggerMessage.g.cs (4)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "SameSiteNotSecure"), "The cookie '{name}' has set 'SameSite=None' and must also set 'Secure'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 35global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, nameof(TimeoutExceptionHandled)), "Timeout exception handled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 44if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\ResponseCookies.cs (1)
172[LoggerMessage(1, LogLevel.Warning, "The cookie '{name}' has set 'SameSite=None' and must also set 'Secure'.", EventName = "SameSiteNotSecure")]
Timeouts\LoggerExtensions.cs (1)
10[LoggerMessage(1, LogLevel.Warning, "Timeout exception handled.")]
Microsoft.AspNetCore.Http.Connections (171)
_generated\0\LoggerMessage.g.cs (114)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(1, "DisposingConnection"), "Disposing connection {TransportConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(2, "WaitingForApplication"), "Waiting for application to complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "ApplicationComplete"), "Application complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(4, "WaitingForTransport"), "Waiting for {TransportType} transport to complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "TransportComplete"), "{TransportType} transport complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "ShuttingDownTransportAndApplication"), "Shutting down both the application and the {TransportType} transport.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 108global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(7, "WaitingForTransportAndApplication"), "Waiting for both the application and {TransportType} transport to complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 117if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 124global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(8, "TransportAndApplicationComplete"), "The application and {TransportType} transport are both complete.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 133if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 140global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(9, "TransportSendTimeout"), "{Timeout}ms elapsed attempting to send a message to the transport. Closing connection {TransportConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 149if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 165global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ConnectionDisposed"), "Connection {TransportConnectionId} was disposed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 174if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 181global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ConnectionAlreadyActive"), "Connection {TransportConnectionId} is already active via {RequestId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 190if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 197global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "PollCanceled"), "Previous poll canceled for {TransportConnectionId} on {RequestId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 206if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 213global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "EstablishedConnection"), "Establishing new connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 222if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 229global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ResumingConnection"), "Resuming existing connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 238if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 245global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "ReceivedBytes"), "Received {Count} bytes.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 254if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 261global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "TransportNotSupported"), "{TransportType} transport not supported by this connection handler.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 270if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 277global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "CannotChangeTransport"), "Cannot change transports mid-connection; currently using {TransportType}, requesting {RequestedTransport}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 286if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 293global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "PostNotAllowedForWebSockets"), "POST requests are not allowed for websocket connections.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 302if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 309global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "NegotiationRequest"), "Sending negotiation response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 318if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 325global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Connections.HttpTransportType>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(11, "ReceivedDeleteRequestForUnsupportedTransport"), "Received DELETE request for unsupported transport: {TransportType}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 334if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 341global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(12, "TerminatingConection"), "Terminating Long Polling connection due to a DELETE request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 350if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 357global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "ConnectionDisposedWhileWriteInProgress"), "Connection {TransportConnectionId} was disposed while a write was in progress.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 366if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 373global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "FailedToReadHttpRequestBody"), "Connection {TransportConnectionId} failed to read the HTTP request body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 382if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 389global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "NegotiateProtocolVersionMismatch"), "The client requested version '{clientProtocolVersion}', but the server does not support this version.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 398if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 405global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "InvalidNegotiateProtocolVersion"), "The client requested an invalid protocol version '{queryStringVersionValue}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 414if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 421global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "UserNameChanged"), "The name of the user changed from '{PreviousUserName}' to '{CurrentUserName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 430if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 437global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "NotifyOnReconnectError"), "Exception from IStatefulReconnectFeature.NotifyOnReconnect callback.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 446if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 462global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "CreatedNewConnection"), "New connection {TransportConnectionId} created.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 471if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 478global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "RemovedConnection"), "Removing connection {TransportConnectionId} from the list of connections.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 487if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 494global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(3, "FailedDispose"), "Failed disposing connection {TransportConnectionId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 503if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 510global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "ConnectionTimedOut"), "Connection {TransportConnectionId} timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 519if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 526global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(4, "ConnectionReset"), "Connection {TransportConnectionId} was reset.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 535if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 542global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(7, "ScanningConnectionsFailed"), "Scanning connections failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 551if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 558global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(9, "HeartBeatStarted"), "Starting connection heartbeat.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 567if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 574global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(10, "HeartBeatEnded"), "Ending connection heartbeat.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 583if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 590global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "AuthenticationExpired"), "Connection {TransportConnectionId} closing because the authentication token has expired.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 599if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 615global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "LongPolling204"), "Terminating Long Polling connection by sending 204 response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 624if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 631global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "PollTimedOut"), "Poll request timed out. Sending 200 response to connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 640if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 647global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "LongPollingWritingMessage"), "Writing a {Count} byte message to connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 656if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 663global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "LongPollingDisconnected"), "Client disconnected from Long Polling endpoint for connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 672if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 679global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(5, "LongPollingTerminated"), "Long Polling transport was terminated due to an error on connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 688if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 704global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(1, "SSEWritingMessage"), "Writing a {Count} byte message.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 713if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 729global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "SocketOpened"), "Socket opened using Sub-Protocol: '{SubProtocol}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 738if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 745global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "SocketClosed"), "Socket closed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 754if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 761global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.WebSockets.WebSocketCloseStatus?, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ClientClosed"), "Client closed connection with status code '{Status}' ({Description}). Signaling end-of-input to application.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 770if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 777global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "WaitingForSend"), "Waiting for the application to finish sending data.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 786if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 793global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "FailedSending"), "Application failed during sending. Sending InternalServerError close frame.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 802if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 809global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "FinishedSending"), "Application finished sending. Sending close frame.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 818if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 825global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "WaitingForClose"), "Waiting for the client to close the socket.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 834if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 841global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "CloseTimedOut"), "Timed out waiting for client to send the close frame, aborting the connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 850if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 857global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.WebSockets.WebSocketMessageType, int, bool>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(9, "MessageReceived"), "Message received. Type: {MessageType}, size: {Size}, EndOfMessage: {EndOfMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 866if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 873global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(10, "MessageToApplication"), "Passing message to application. Payload size: {Size}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 882if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 889global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(11, "SendPayload"), "Sending payload: {Size} bytes.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 898if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 905global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "ErrorWritingFrame"), "Error writing frame.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 914if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 921global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "ClosedPrematurely"), "Socket connection closed prematurely.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 930if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 937global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "ClosingWebSocketFailed"), "Closing webSocket failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 946if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 953global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "SendErrored"), "Send loop errored.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 962if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
Internal\HttpConnectionContext.cs (9)
766[LoggerMessage(1, LogLevel.Trace, "Disposing connection {TransportConnectionId}.", EventName = "DisposingConnection")] 769[LoggerMessage(2, LogLevel.Trace, "Waiting for application to complete.", EventName = "WaitingForApplication")] 772[LoggerMessage(3, LogLevel.Trace, "Application complete.", EventName = "ApplicationComplete")] 775[LoggerMessage(4, LogLevel.Trace, "Waiting for {TransportType} transport to complete.", EventName = "WaitingForTransport")] 778[LoggerMessage(5, LogLevel.Trace, "{TransportType} transport complete.", EventName = "TransportComplete")] 781[LoggerMessage(6, LogLevel.Trace, "Shutting down both the application and the {TransportType} transport.", EventName = "ShuttingDownTransportAndApplication")] 784[LoggerMessage(7, LogLevel.Trace, "Waiting for both the application and {TransportType} transport to complete.", EventName = "WaitingForTransportAndApplication")] 787[LoggerMessage(8, LogLevel.Trace, "The application and {TransportType} transport are both complete.", EventName = "TransportAndApplicationComplete")] 790[LoggerMessage(9, LogLevel.Trace, "{Timeout}ms elapsed attempting to send a message to the transport. Closing connection {TransportConnectionId}.", EventName = "TransportSendTimeout")]
Internal\HttpConnectionDispatcher.Log.cs (18)
12[LoggerMessage(1, LogLevel.Debug, "Connection {TransportConnectionId} was disposed.", EventName = "ConnectionDisposed")] 15[LoggerMessage(2, LogLevel.Debug, "Connection {TransportConnectionId} is already active via {RequestId}.", EventName = "ConnectionAlreadyActive")] 18[LoggerMessage(3, LogLevel.Trace, "Previous poll canceled for {TransportConnectionId} on {RequestId}.", EventName = "PollCanceled")] 21[LoggerMessage(4, LogLevel.Debug, "Establishing new connection.", EventName = "EstablishedConnection")] 24[LoggerMessage(5, LogLevel.Debug, "Resuming existing connection.", EventName = "ResumingConnection")] 27[LoggerMessage(6, LogLevel.Trace, "Received {Count} bytes.", EventName = "ReceivedBytes")] 30[LoggerMessage(7, LogLevel.Debug, "{TransportType} transport not supported by this connection handler.", EventName = "TransportNotSupported")] 33[LoggerMessage(8, LogLevel.Debug, "Cannot change transports mid-connection; currently using {TransportType}, requesting {RequestedTransport}.", EventName = "CannotChangeTransport")] 36[LoggerMessage(9, LogLevel.Debug, "POST requests are not allowed for websocket connections.", EventName = "PostNotAllowedForWebSockets")] 39[LoggerMessage(10, LogLevel.Debug, "Sending negotiation response.", EventName = "NegotiationRequest")] 42[LoggerMessage(11, LogLevel.Trace, "Received DELETE request for unsupported transport: {TransportType}.", EventName = "ReceivedDeleteRequestForUnsupportedTransport")] 45[LoggerMessage(12, LogLevel.Trace, "Terminating Long Polling connection due to a DELETE request.", EventName = "TerminatingConection")] 48[LoggerMessage(13, LogLevel.Debug, "Connection {TransportConnectionId} was disposed while a write was in progress.", EventName = "ConnectionDisposedWhileWriteInProgress")] 51[LoggerMessage(14, LogLevel.Debug, "Connection {TransportConnectionId} failed to read the HTTP request body.", EventName = "FailedToReadHttpRequestBody")] 54[LoggerMessage(15, LogLevel.Debug, "The client requested version '{clientProtocolVersion}', but the server does not support this version.", EventName = "NegotiateProtocolVersionMismatch")] 57[LoggerMessage(16, LogLevel.Debug, "The client requested an invalid protocol version '{queryStringVersionValue}'", EventName = "InvalidNegotiateProtocolVersion")] 60[LoggerMessage(17, LogLevel.Warning, "The name of the user changed from '{PreviousUserName}' to '{CurrentUserName}'.", EventName = "UserNameChanged")] 68[LoggerMessage(18, LogLevel.Debug, "Exception from IStatefulReconnectFeature.NotifyOnReconnect callback.", EventName = "NotifyOnReconnectError")]
Internal\HttpConnectionManager.Log.cs (9)
12[LoggerMessage(1, LogLevel.Debug, "New connection {TransportConnectionId} created.", EventName = "CreatedNewConnection")] 15[LoggerMessage(2, LogLevel.Debug, "Removing connection {TransportConnectionId} from the list of connections.", EventName = "RemovedConnection")] 18[LoggerMessage(3, LogLevel.Error, "Failed disposing connection {TransportConnectionId}.", EventName = "FailedDispose")] 21[LoggerMessage(5, LogLevel.Trace, "Connection {TransportConnectionId} timed out.", EventName = "ConnectionTimedOut")] 24[LoggerMessage(4, LogLevel.Trace, "Connection {TransportConnectionId} was reset.", EventName = "ConnectionReset")] 27[LoggerMessage(7, LogLevel.Error, "Scanning connections failed.", EventName = "ScanningConnectionsFailed")] 32[LoggerMessage(9, LogLevel.Trace, "Starting connection heartbeat.", EventName = "HeartBeatStarted")] 35[LoggerMessage(10, LogLevel.Trace, "Ending connection heartbeat.", EventName = "HeartBeatEnded")] 38[LoggerMessage(11, LogLevel.Debug, "Connection {TransportConnectionId} closing because the authentication token has expired.", EventName = "AuthenticationExpired")]
Internal\Transports\LongPollingServerTransport.cs (5)
117[LoggerMessage(1, LogLevel.Debug, "Terminating Long Polling connection by sending 204 response.", EventName = "LongPolling204")] 120[LoggerMessage(2, LogLevel.Debug, "Poll request timed out. Sending 200 response to connection.", EventName = "PollTimedOut")] 123[LoggerMessage(3, LogLevel.Trace, "Writing a {Count} byte message to connection.", EventName = "LongPollingWritingMessage")] 126[LoggerMessage(4, LogLevel.Debug, "Client disconnected from Long Polling endpoint for connection.", EventName = "LongPollingDisconnected")] 129[LoggerMessage(5, LogLevel.Error, "Long Polling transport was terminated due to an error on connection.", EventName = "LongPollingTerminated")]
Internal\Transports\ServerSentEventsServerTransport.cs (1)
90[LoggerMessage(1, LogLevel.Trace, "Writing a {Count} byte message.", EventName = "SSEWritingMessage")]
Internal\Transports\WebSocketsServerTransport.Log.cs (15)
13[LoggerMessage(1, LogLevel.Debug, "Socket opened using Sub-Protocol: '{SubProtocol}'.", EventName = "SocketOpened")] 16[LoggerMessage(2, LogLevel.Debug, "Socket closed.", EventName = "SocketClosed")] 19[LoggerMessage(3, LogLevel.Debug, "Client closed connection with status code '{Status}' ({Description}). Signaling end-of-input to application.", EventName = "ClientClosed")] 22[LoggerMessage(4, LogLevel.Debug, "Waiting for the application to finish sending data.", EventName = "WaitingForSend")] 25[LoggerMessage(5, LogLevel.Debug, "Application failed during sending. Sending InternalServerError close frame.", EventName = "FailedSending")] 28[LoggerMessage(6, LogLevel.Debug, "Application finished sending. Sending close frame.", EventName = "FinishedSending")] 31[LoggerMessage(7, LogLevel.Debug, "Waiting for the client to close the socket.", EventName = "WaitingForClose")] 34[LoggerMessage(8, LogLevel.Debug, "Timed out waiting for client to send the close frame, aborting the connection.", EventName = "CloseTimedOut")] 37[LoggerMessage(9, LogLevel.Trace, "Message received. Type: {MessageType}, size: {Size}, EndOfMessage: {EndOfMessage}.", EventName = "MessageReceived")] 40[LoggerMessage(10, LogLevel.Trace, "Passing message to application. Payload size: {Size}.", EventName = "MessageToApplication")] 43[LoggerMessage(11, LogLevel.Trace, "Sending payload: {Size} bytes.", EventName = "SendPayload")] 46[LoggerMessage(12, LogLevel.Debug, "Error writing frame.", EventName = "ErrorWritingFrame")] 49[LoggerMessage(14, LogLevel.Debug, "Socket connection closed prematurely.", EventName = "ClosedPrematurely")] 52[LoggerMessage(15, LogLevel.Debug, "Closing webSocket failed.", EventName = "ClosingWebSocketFailed")] 55[LoggerMessage(16, LogLevel.Debug, "Send loop errored.", EventName = "SendErrored")]
Microsoft.AspNetCore.Http.Extensions (114)
_generated\0\LoggerMessage.g.cs (74)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotResolveConverter"), "Cannot resolve converter for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 37global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "StartResolveMetadataGraph"), "Begin resolve metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 46if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 53global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "EndResolveMetadataGraph"), "End resolve metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 62if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 69global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "Metadata"), "Cached metadata found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 78if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 85global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NoMetadataFound"), "No cached metadata graph for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 94if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 101global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "RecursiveTypeFound"), "Recursive type '{Type}' found in the resolution graph '{Chain}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 110if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 117global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "PrimitiveType"), "'{Type}' identified as primitive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 126if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 133global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "DictionaryType"), "'{Type}' identified as dictionary.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 142if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 149global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "CollectionType"), "'{Type}' identified as collection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 158if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 165global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ObjectType"), "'{Type}' identified as object.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 174if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 181global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "ConstructorFound"), "Constructor found for type '{Type}' with parameters '{Parameters}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 190if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 256if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 259global::Microsoft.Extensions.Logging.LogLevel.Debug, 268global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "CandidateProperty"), "Candidate property '{Name}' of type '{PropertyType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 277if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 339if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 342global::Microsoft.Extensions.Logging.LogLevel.Debug, 406if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 409global::Microsoft.Extensions.Logging.LogLevel.Debug, 418global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "IgnoredProperty"), "Candidate property {Name} will not be mapped. It has been explicitly ignored.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 427if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 434global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "NonPublicSetter"), "Candidate property {Name} will not be mapped. It has no public setter.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 443if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 450global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "PropertyRequired"), "Candidate property {Name} is marked as required.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 459if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 466global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "MetadataComputed"), "Metadata created for {Type}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 475if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 482global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "GenericTypeDefinitionNotSupported"), "Can not map type generic type definition '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 491if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 498global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "MultiplePublicConstructorsFound"), "Unable to select a constructor. Multiple public constructors found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 507if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 514global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "InterfacesNotSupported"), "Can not map interface type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 523if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 530global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(22, "AbstractClassesNotSupported"), "Can not map abstract type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 539if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 546global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "NoPublicConstructorFound"), "Unable to select a constructor. No public constructors found for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 555if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 562global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(24, "ConstructorParameterTypeNotSupported"), "Can not map type '{Type}'. Constructor parameter {Name} of type {ParameterType} is not supported.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 571if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 578global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(25, "PropertyTypeNotSupported"), "Can not map type '{Type}'. Property {Name} of type {PropertyType} is not supported.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 587if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 603global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestBodyIOException"), "Reading the request body failed with an IOException.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 612if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 619global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "InvalidJsonRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as JSON.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 628if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 635global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ParameterBindingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from \"{SourceValue}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 644if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 651global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "RequiredParameterNotProvided"), "Required parameter \"{ParameterType} {ParameterName}\" was not provided from {Source}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 660if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 667global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ImplicitBodyNotProvided"), "Implicit body inferred for parameter \"{ParameterName}\" but no body was provided. Did you mean to use a Service instead?", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 676if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 683global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "UnexpectedContentType"), "Expected a supported JSON media type but got \"{ContentType}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 692if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 699global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "UnexpectedNonFormContentType"), "Expected a supported form media type but got \"{ContentType}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 708if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 715global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "InvalidFormRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 724if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 731global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "InvalidAntiforgeryToken"), "Invalid anti-forgery token found when reading parameter \"{ParameterType} {ParameterName}\" from the request body as form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 740if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 747global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "FormDataMappingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from the request body as form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 756if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 763global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "UnexpectedRequestWithoutBody"), "Unexpected request without body, failed to bind parameter \"{ParameterType} {ParameterName}\" from the request body as form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 772if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
RequestDelegateFactory.cs (11)
2730[LoggerMessage(RequestDelegateCreationLogging.RequestBodyIOExceptionEventId, LogLevel.Debug, RequestDelegateCreationLogging.RequestBodyIOExceptionMessage, EventName = RequestDelegateCreationLogging.RequestBodyIOExceptionEventName)] 2744[LoggerMessage(RequestDelegateCreationLogging.InvalidJsonRequestBodyEventId, LogLevel.Debug, RequestDelegateCreationLogging.InvalidJsonRequestBodyLogMessage, EventName = RequestDelegateCreationLogging.InvalidJsonRequestBodyEventName)] 2758[LoggerMessage(RequestDelegateCreationLogging.ParameterBindingFailedEventId, LogLevel.Debug, RequestDelegateCreationLogging.ParameterBindingFailedLogMessage, EventName = RequestDelegateCreationLogging.ParameterBindingFailedEventName)] 2772[LoggerMessage(RequestDelegateCreationLogging.RequiredParameterNotProvidedEventId, LogLevel.Debug, RequestDelegateCreationLogging.RequiredParameterNotProvidedLogMessage, EventName = RequestDelegateCreationLogging.RequiredParameterNotProvidedEventName)] 2786[LoggerMessage(RequestDelegateCreationLogging.ImplicitBodyNotProvidedEventId, LogLevel.Debug, RequestDelegateCreationLogging.ImplicitBodyNotProvidedLogMessage, EventName = RequestDelegateCreationLogging.ImplicitBodyNotProvidedEventName)] 2800[LoggerMessage(RequestDelegateCreationLogging.UnexpectedJsonContentTypeEventId, LogLevel.Debug, RequestDelegateCreationLogging.UnexpectedJsonContentTypeLogMessage, EventName = RequestDelegateCreationLogging.UnexpectedJsonContentTypeEventName)] 2814[LoggerMessage(RequestDelegateCreationLogging.UnexpectedFormContentTypeEventId, LogLevel.Debug, RequestDelegateCreationLogging.UnexpectedFormContentTypeLogMessage, EventName = RequestDelegateCreationLogging.UnexpectedFormContentTypeLogEventName)] 2828[LoggerMessage(RequestDelegateCreationLogging.InvalidFormRequestBodyEventId, LogLevel.Debug, RequestDelegateCreationLogging.InvalidFormRequestBodyLogMessage, EventName = RequestDelegateCreationLogging.InvalidFormRequestBodyEventName)] 2842[LoggerMessage(RequestDelegateCreationLogging.InvalidAntiforgeryTokenEventId, LogLevel.Debug, RequestDelegateCreationLogging.InvalidAntiforgeryTokenLogMessage, EventName = RequestDelegateCreationLogging.InvalidAntiforgeryTokenEventName)] 2856[LoggerMessage(RequestDelegateCreationLogging.FormDataMappingFailedEventId, LogLevel.Debug, RequestDelegateCreationLogging.FormDataMappingFailedLogMessage, EventName = RequestDelegateCreationLogging.FormDataMappingFailedEventName)] 2870[LoggerMessage(RequestDelegateCreationLogging.UnexpectedRequestWithoutBodyEventId, LogLevel.Debug, RequestDelegateCreationLogging.UnexpectedRequestWithoutBodyLogMessage, EventName = RequestDelegateCreationLogging.UnexpectedRequestWithoutBodyEventName)]
RequestDelegateFactoryOptions.cs (1)
27/// writing a <see cref="LogLevel.Debug"/> log when handling invalid requests.
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (27)
163if (_logger.IsEnabled(LogLevel.Debug)) 305if (_logger.IsEnabled(LogLevel.Debug)) 353[LoggerMessage(1, LogLevel.Debug, "Begin resolve metadata graph for type '{Type}'.", EventName = nameof(StartResolveMetadataGraph))] 356[LoggerMessage(2, LogLevel.Debug, "End resolve metadata graph for type '{Type}'.", EventName = nameof(EndResolveMetadataGraph))] 359[LoggerMessage(3, LogLevel.Debug, "Cached metadata found for type '{Type}'.", EventName = nameof(Metadata))] 362[LoggerMessage(4, LogLevel.Debug, "No cached metadata graph for type '{Type}'.", EventName = nameof(NoMetadataFound))] 365[LoggerMessage(5, LogLevel.Debug, "Recursive type '{Type}' found in the resolution graph '{Chain}'.", EventName = nameof(RecursiveTypeFound))] 368[LoggerMessage(6, LogLevel.Debug, "'{Type}' identified as primitive.", EventName = nameof(PrimitiveType))] 371[LoggerMessage(7, LogLevel.Debug, "'{Type}' identified as dictionary.", EventName = nameof(DictionaryType))] 374[LoggerMessage(8, LogLevel.Debug, "'{Type}' identified as collection.", EventName = nameof(CollectionType))] 377[LoggerMessage(9, LogLevel.Debug, "'{Type}' identified as object.", EventName = nameof(ObjectType))] 380[LoggerMessage(10, LogLevel.Debug, "Constructor found for type '{Type}' with parameters '{Parameters}'.", EventName = nameof(ConstructorFound))] 383[LoggerMessage(11, LogLevel.Debug, "Constructor parameter '{Name}' of type '{ParameterType}' found for type '{Type}'.", EventName = nameof(ConstructorParameter))] 386[LoggerMessage(12, LogLevel.Debug, "Candidate property '{Name}' of type '{PropertyType}'.", EventName = nameof(CandidateProperty))] 389[LoggerMessage(13, LogLevel.Debug, "Candidate property {PropertyName} has a matching constructor parameter '{ConstructorParameterName}'.", EventName = nameof(MatchingConstructorParameterFound))] 392[LoggerMessage(14, LogLevel.Debug, "Candidate property or constructor parameter {PropertyName} defines a custom name '{CustomName}'.", EventName = nameof(CustomParameterNameMetadata))] 395[LoggerMessage(15, LogLevel.Debug, "Candidate property {Name} will not be mapped. It has been explicitly ignored.", EventName = nameof(IgnoredProperty))] 398[LoggerMessage(16, LogLevel.Debug, "Candidate property {Name} will not be mapped. It has no public setter.", EventName = nameof(NonPublicSetter))] 401[LoggerMessage(17, LogLevel.Debug, "Candidate property {Name} is marked as required.", EventName = nameof(PropertyRequired))] 404[LoggerMessage(18, LogLevel.Debug, "Metadata created for {Type}.", EventName = nameof(MetadataComputed))] 407[LoggerMessage(19, LogLevel.Debug, "Can not map type generic type definition '{Type}'.", EventName = nameof(GenericTypeDefinitionNotSupported))] 410[LoggerMessage(20, LogLevel.Debug, "Unable to select a constructor. Multiple public constructors found for type '{Type}'.", EventName = nameof(MultiplePublicConstructorsFound))] 413[LoggerMessage(21, LogLevel.Debug, "Can not map interface type '{Type}'.", EventName = nameof(InterfacesNotSupported))] 416[LoggerMessage(22, LogLevel.Debug, "Can not map abstract type '{Type}'.", EventName = nameof(AbstractClassesNotSupported))] 419[LoggerMessage(23, LogLevel.Debug, "Unable to select a constructor. No public constructors found for type '{Type}'.", EventName = nameof(NoPublicConstructorFound))] 422[LoggerMessage(24, LogLevel.Debug, "Can not map type '{Type}'. Constructor parameter {Name} of type {ParameterType} is not supported.", EventName = nameof(ConstructorParameterTypeNotSupported))] 425[LoggerMessage(25, LogLevel.Debug, "Can not map type '{Type}'. Property {Name} of type {PropertyType} is not supported.", EventName = nameof(PropertyTypeNotSupported))]
Microsoft.AspNetCore.Http.Results (48)
_generated\0\LoggerMessage.g.cs (29)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ChallengeResultExecuting"), "Executing ChallengeResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 34global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ChallengeResultExecuting"), "Executing ChallengeResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 56global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectResultExecuting"), "Executing RedirectResult, redirecting to {Destination}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 65if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 81global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectToRouteResultExecuting"), "Executing RedirectToRouteResult, redirecting to {Destination} from route {RouteName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 90if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Security.Claims.ClaimsPrincipal>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "SignInResultExecuting"), "Executing SignInResult with authentication scheme ({Scheme}) and the following principal: {Principal}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 131global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "SignOutResultExecuting"), "Executing SignOutResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 153global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "WritingResultAsStatusCode"), "Setting HTTP status code {StatusCode}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 162if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 169global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "WritingResultAsContent"), "Write content with HTTP Response ContentType of {ContentType}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 178if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 185global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(3, "WritingResultAsJson"), "Writing value of type '{Type}' as Json.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 194if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 201global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(5, "WritingResultAsFileWithNoFileName"), "Sending file with download name '{FileDownloadName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 210if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 226global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 235if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 242global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(34, "IfMatchPreconditionFailed"), "Current request's If-Match header check failed as the file's current etag '{CurrentETag}' does not match with any of the supplied etags.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 251if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 258global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset?, global::System.DateTimeOffset?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(35, "IfUnmodifiedSincePreconditionFailed"), "Current request's If-Unmodified-Since header check failed as the file was modified (at '{lastModified}') after the If-Unmodified-Since date '{IfUnmodifiedSinceDate}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 267if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 274global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset?, global::System.DateTimeOffset?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(36, "IfRangeLastModifiedPreconditionFailed"), "Could not serve range as the file was modified (at {LastModified}) after the if-Range's last modified date '{IfRangeLastModified}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 283if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 290global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(37, "IfRangeETagPreconditionFailed"), "Could not serve range as the file's current etag '{CurrentETag}' does not match the If-Range etag '{IfRangeETag}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 299if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 306global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(38, "NotEnabledForRangeProcessing"), "The file result has not been enabled for processing range requests. To enable it, set the EnableRangeProcessing property on the result to 'true'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 315if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
ChallengeHttpResult.cs (2)
97if (logger.IsEnabled(LogLevel.Information)) 103[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
ForbidHttpResult.cs (2)
108if (logger.IsEnabled(LogLevel.Information)) 114[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
HttpResultsHelper.cs (4)
164[LoggerMessage(1, LogLevel.Information, 169[LoggerMessage(2, LogLevel.Information, 174[LoggerMessage(3, LogLevel.Information, "Writing value of type '{Type}' as Json.", 178[LoggerMessage(5, LogLevel.Information,
RedirectHttpResult.cs (1)
138[LoggerMessage(1, LogLevel.Information,
RedirectToRouteHttpResult.cs (1)
195[LoggerMessage(1, LogLevel.Information,
SignInHttpResult.cs (1)
71[LoggerMessage(1, LogLevel.Information,
SignOutHttpResult.cs (2)
97if (logger.IsEnabled(LogLevel.Information)) 103[LoggerMessage(1, LogLevel.Information,
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (6)
398[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body.", EventName = "WritingRangeToBody")] 401[LoggerMessage(34, LogLevel.Debug, 406[LoggerMessage(35, LogLevel.Debug, 414[LoggerMessage(36, LogLevel.Debug, 422[LoggerMessage(37, LogLevel.Debug, 430[LoggerMessage(38, LogLevel.Debug,
Microsoft.AspNetCore.HttpLogging (31)
_generated\0\LoggerMessage.g.cs (18)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "WriteMessagesFailed"), "Failed to write all messages.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "CreateDirectoryFailed"), "Failed to create directory {Path}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "MaxFilesReached"), "Limit of 10000 files per day has been reached", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 67global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(3, "RequestBody"), "RequestBody: {Body}{Status}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 76if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 83global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "ResponseBody"), "ResponseBody: {Body}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 92if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 99global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "DecodeFailure"), "Decode failure while converting body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 108if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 115global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "UnrecognizedMediaType"), "Unrecognized Content-Type for {Name} body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 124if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 131global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "NoMediaType"), "No Content-Type header for {Name} body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 140if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 147global::Microsoft.Extensions.Logging.LoggerMessage.Define<double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(8, "Duration"), "Duration: {Duration}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 156if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
FileLoggerProcessor.cs (3)
341[LoggerMessage(1, LogLevel.Debug, "Failed to write all messages.", EventName = "WriteMessagesFailed")] 344[LoggerMessage(2, LogLevel.Debug, "Failed to create directory {Path}.", EventName = "CreateDirectoryFailed")] 347[LoggerMessage(3, LogLevel.Warning, "Limit of 10000 files per day has been reached", EventName = "MaxFilesReached")]
HttpLoggingExtensions.cs (9)
11LogLevel.Information, 17LogLevel.Information, 23[LoggerMessage(3, LogLevel.Information, "RequestBody: {Body}{Status}", EventName = "RequestBody")] 26[LoggerMessage(4, LogLevel.Information, "ResponseBody: {Body}", EventName = "ResponseBody")] 29[LoggerMessage(5, LogLevel.Debug, "Decode failure while converting body.", EventName = "DecodeFailure")] 32[LoggerMessage(6, LogLevel.Debug, "Unrecognized Content-Type for {Name} body.", EventName = "UnrecognizedMediaType")] 35[LoggerMessage(7, LogLevel.Debug, "No Content-Type header for {Name} body.", EventName = "NoMediaType")] 38[LoggerMessage(8, LogLevel.Information, "Duration: {Duration}ms", EventName = "Duration")] 42LogLevel.Information,
HttpLoggingMiddleware.cs (1)
55if (!_logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.HttpOverrides (5)
_generated\0\LoggerMessage.g.cs (2)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(0, "NoCertificate"), "Could not read certificate from header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
ForwardedHeadersMiddleware.cs (2)
227if (_logger.IsEnabled(LogLevel.Debug)) 246if (_logger.IsEnabled(LogLevel.Debug))
LoggingExtensions.cs (1)
8[LoggerMessage(0, LogLevel.Warning, "Could not read certificate from header.", EventName = "NoCertificate")]
Microsoft.AspNetCore.HttpsPolicy (21)
_generated\0\LoggerMessage.g.cs (14)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "NotSecure"), "The request is insecure. Skipping HSTS header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ExcludedHost"), "The host '{host}' is excluded. Skipping HSTS header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "AddingHstsHeader"), "Adding HSTS header to response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 64global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectingToHttps"), "Redirecting to '{redirect}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 73if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 80global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "PortLoadedFromConfig"), "Https port '{port}' loaded from configuration.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 89if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 96global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "FailedToDeterminePort"), "Failed to determine the https port for redirect.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 105if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 112global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "PortFromServer"), "Https port '{httpsPort}' discovered from server endpoints.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 121if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
HstsLoggingExtensions.cs (3)
10[LoggerMessage(1, LogLevel.Debug, "The request is insecure. Skipping HSTS header.", EventName = "NotSecure")] 13[LoggerMessage(2, LogLevel.Debug, "The host '{host}' is excluded. Skipping HSTS header.", EventName = "ExcludedHost")] 16[LoggerMessage(3, LogLevel.Trace, "Adding HSTS header to response.", EventName = "AddingHstsHeader")]
HttpsLoggingExtensions.cs (4)
10[LoggerMessage(1, LogLevel.Debug, "Redirecting to '{redirect}'.", EventName = "RedirectingToHttps")] 13[LoggerMessage(2, LogLevel.Debug, "Https port '{port}' loaded from configuration.", EventName = "PortLoadedFromConfig")] 16[LoggerMessage(3, LogLevel.Warning, "Failed to determine the https port for redirect.", EventName = "FailedToDeterminePort")] 19[LoggerMessage(5, LogLevel.Debug, "Https port '{httpsPort}' discovered from server endpoints.", EventName = "PortFromServer")]
Microsoft.AspNetCore.Identity (29)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (8)
1560LoggerMessage.Define(LogLevel.Debug, new EventId(1, "RequestBodyIOException"), "Reading the request body failed with an IOException."); 1577LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(2, "InvalidJsonRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as JSON."); 1594LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(3, "ParameterBindingFailed"), "Failed to bind parameter \"{ParameterType} {ParameterName}\" from \"{SourceValue}\"."); 1611LoggerMessage.Define<string, string, string>(LogLevel.Debug, new EventId(4, "RequiredParameterNotProvided"), "Required parameter \"{ParameterType} {ParameterName}\" was not provided from {Source}."); 1628LoggerMessage.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?"); 1645LoggerMessage.Define<string>(LogLevel.Debug, new EventId(6, "UnexpectedContentType"), "Expected a supported JSON media type but got \"{ContentType}\"."); 1662LoggerMessage.Define<string>(LogLevel.Debug, new EventId(7, "UnexpectedNonFormContentType"), "Expected a supported form media type but got \"{ContentType}\"."); 1679LoggerMessage.Define<string, string>(LogLevel.Debug, new EventId(8, "InvalidFormRequestBody"), "Failed to read parameter \"{ParameterType} {ParameterName}\" from the request body as form.");
_generated\1\LoggerMessage.g.cs (14)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "InvalidExpirationTime"), "ValidateAsync failed: the expiration time is invalid.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UserIdsNotEquals"), "ValidateAsync failed: did not find expected UserId.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "PurposeNotEquals"), "ValidateAsync failed: did not find expected purpose. '{ActualPurpose}' does not match the expected purpose '{ExpectedPurpose}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "UnexpectedEndOfInput"), "ValidateAsync failed: unexpected end of input.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "SecurityStampNotEquals"), "ValidateAsync failed: did not find expected security stamp.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "SecurityStampIsNotEmpty"), "ValidateAsync failed: the expected stamp is not empty.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "UnhandledException"), "ValidateAsync failed: unhandled exception was thrown.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggingExtensions.cs (7)
8[LoggerMessage(0, LogLevel.Debug, "ValidateAsync failed: the expiration time is invalid.", EventName = "InvalidExpirationTime")] 11[LoggerMessage(1, LogLevel.Debug, "ValidateAsync failed: did not find expected UserId.", EventName = "UserIdsNotEquals")] 14[LoggerMessage(2, LogLevel.Debug, "ValidateAsync failed: did not find expected purpose. '{ActualPurpose}' does not match the expected purpose '{ExpectedPurpose}'.", EventName = "PurposeNotEquals")] 17[LoggerMessage(3, LogLevel.Debug, "ValidateAsync failed: unexpected end of input.", EventName = "UnexpectedEndOfInput")] 20[LoggerMessage(4, LogLevel.Debug, "ValidateAsync failed: did not find expected security stamp.", EventName = "SecurityStampNotEquals")] 23[LoggerMessage(5, LogLevel.Debug, "ValidateAsync failed: the expected stamp is not empty.", EventName = "SecurityStampIsNotEmpty")] 26[LoggerMessage(6, LogLevel.Debug, "ValidateAsync failed: unhandled exception was thrown.", EventName = "UnhandledException")]
Microsoft.AspNetCore.Localization (6)
_generated\0\LoggerMessage.g.cs (4)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Collections.Generic.IList<global::Microsoft.Extensions.Primitives.StringSegment>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UnsupportedCulture"), "{requestCultureProvider} returned the following unsupported cultures '{cultures}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Collections.Generic.IList<global::Microsoft.Extensions.Primitives.StringSegment>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "UnsupportedUICulture"), "{requestCultureProvider} returned the following unsupported UI Cultures '{uiCultures}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
RequestCultureProviderLoggerExtensions.cs (2)
11[LoggerMessage(1, LogLevel.Debug, "{requestCultureProvider} returned the following unsupported cultures '{cultures}'.", EventName = "UnsupportedCulture")] 14[LoggerMessage(2, LogLevel.Debug, "{requestCultureProvider} returned the following unsupported UI Cultures '{uiCultures}'.", EventName = "UnsupportedUICulture")]
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
_generated\0\LoggerMessage.g.cs (2)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ApiDescriptionProviderExecuting"), "Executing API description provider '{ProviderName}' from assembly {ProviderAssembly} v{AssemblyVersion}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
ApiDescriptionGroupCollectionProvider.cs (1)
87[LoggerMessage(2, LogLevel.Debug, "Executing API description provider '{ProviderName}' from assembly {ProviderAssembly} v{AssemblyVersion}.", EventName = "ApiDescriptionProviderExecuting")]
Microsoft.AspNetCore.Mvc.Core (348)
_generated\0\LoggerMessage.g.cs (189)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(34, "IfMatchPreconditionFailed"), "Current request's If-Match header check failed as the file's current etag '{CurrentETag}' does not match with any of the supplied etags.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset?, global::System.DateTimeOffset?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(35, "IfUnmodifiedSincePreconditionFailed"), "Current request's If-Unmodified-Since header check failed as the file was modified (at '{lastModified}') after the If-Unmodified-Since date '{IfUnmodifiedSinceDate}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset?, global::System.DateTimeOffset?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(36, "IfRangeLastModifiedPreconditionFailed"), "Could not serve range as the file was modified (at {LastModified}) after the if-Range's last modified date '{IfRangeLastModified}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(37, "IfRangeETagPreconditionFailed"), "Could not serve range as the file's current etag '{CurrentETag}' does not match the If-Range etag '{IfRangeETag}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(38, "NotEnabledForRangeProcessing"), "The file result has not been enabled for processing range requests. To enable it, set the EnableRangeProcessing property on the result to 'true'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 117global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ChallengeResultExecuting"), "Executing ChallengeResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 139global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "FeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 148if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 155global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 164if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 171global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RequestBodySizeLimitDisabled"), "The request body size limit has been disabled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 180if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 187global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, global::System.Type, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NotMostEffectiveFilter"), "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 196if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 212global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, global::System.Type, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "NotMostEffectiveFilter"), "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 221if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 237global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotApplyRequestFormLimits"), "Unable to apply configured form options since the request form has already been read.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 246if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 253global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "AppliedRequestFormLimits"), "Applied the configured form options on the current request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 262if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 269global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, global::System.Type, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NotMostEffectiveFilter"), "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 278if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 294global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "FeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 303if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 310global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 319if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 326global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "MaxRequestBodySizeSet"), "The maximum request body size has been set to {RequestSize}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 335if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 342global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, global::System.Type, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NotMostEffectiveFilter"), "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 351if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 367global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, global::System.Type, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NotMostEffectiveFilter"), "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 376if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 392global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ForbidResultExecuting"), "Executing ForbidResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 414global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UnsupportedFormatFilterContentType"), "Could not find a media type for the format '{FormatFilterContentType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 423if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 430global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ActionDoesNotSupportFormatFilterContentType"), "Current action does not support the content type '{FormatFilterContentType}'. The supported content types are '{SupportedMediaTypes}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 439if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 446global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "CannotApplyFormatFilterContentType"), "Cannot apply content type '{FormatFilterContentType}' to the response as current action had explicitly set a preferred content type.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 455if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 462global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ActionDoesNotExplicitlySpecifyContentTypes"), "Current action does not explicitly specify any content types for the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 471if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 487global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "SystemTextJsonInputException"), "JSON input formatter threw an exception: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 496if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 503global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "SystemTextJsonInputSuccess"), "JSON input formatter succeeded, deserializing to type '{TypeName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 512if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 528global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(1, "AmbiguousActions"), "Request matched multiple actions resulting in ambiguity. Matching actions: {AmbiguousActions}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 537if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 544global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, global::Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ConstraintMismatch"), "Action '{ActionName}' with id '{ActionId}' did not match the constraint '{ActionConstraint}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 553if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 628if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 631global::Microsoft.Extensions.Logging.LogLevel.Trace, 649global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ContentResultExecuting"), "Executing ContentResult with HTTP Response ContentType of {ContentType}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 658if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 674global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ControllerFactoryExecuting"), "Executing controller factory for controller {Controller} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 687global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ControllerFactoryExecuted"), "Executed controller factory for controller {Controller} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 700global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(101, "ActionMethodExecuting"), "Executing action method {ActionName} - Validation state: {ValidationState}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 713global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?[]>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(102, "ActionMethodExecutingWithArguments"), "Executing action method {ActionName} with arguments ({Arguments})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 726global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?, double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(103, "ActionMethodExecuted"), "Executed action method {ActionName}, returned result {ActionResult} in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 748global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "NoActionDescriptors"), "No action descriptors found. This may indicate an incorrectly configured application or missing application parts. To learn more, visit https://aka.ms/aspnet/mvc/app-parts", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 757if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 773global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "FormatterSelected"), "Selected output formatter '{OutputFormatter}' and content type '{ContentType}' to write the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 786global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NoAcceptForNegotiation"), "No information found on request to perform content negotiation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 795if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 802global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "NoFormatterFromNegotiation"), "Could not find an output formatter based on content negotiation. Accepted types were ({AcceptTypes})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 811if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 818global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "SelectingOutputFormatterUsingAcceptHeader"), "Attempting to select an output formatter based on Accept header '{AcceptHeader}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 827if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 834global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypes"), "Attempting to select an output formatter based on Accept header '{AcceptHeader}' and explicitly specified content types '{ExplicitContentTypes}'. The content types in the accept header must be a subset of the explicitly set content types.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 843if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 850global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "SelectingOutputFormatterWithoutUsingContentTypes"), "Attempting to select an output formatter without using a content type as no explicit content types were specified for the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 859if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 866global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "SelectingOutputFormatterUsingContentTypes"), "Attempting to select the first output formatter in the output formatters list which supports a content type from the explicitly specified content types '{ExplicitContentTypes}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 875if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 882global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "SelectingFirstCanWriteFormatter"), "Attempting to select the first formatter in the output formatters list which can write the result.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 891if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 898global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "RegisteredOutputFormatters"), "List of registered output formatters, in the following order: {OutputFormatters}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 907if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 923global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "ExecutingFileResultWithNoFileName"), "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 936global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 945if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 961global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ExecutingFileResultWithNoFileName"), "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 974global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 983if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 999global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "LocalRedirectResultExecuting"), "Executing LocalRedirectResult, redirecting to {Destination}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1008if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1024global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ModelStateInvalidFilterExecuting"), "The request has model state errors, returning an error response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1033if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1049global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ObjectResultExecuting"), "Executing {ObjectResultType}, writing value of type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1062global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.List<string?>>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "NoFormatter"), "No output formatter was found for content types '{ContentTypes}' to write the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1084global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ExecutingFileResult"), "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1097global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1106if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectResultExecuting"), "Executing RedirectResult, redirecting to {Destination}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1147global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectToActionResultExecuting"), "Executing RedirectResult, redirecting to {Destination}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1156if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1172global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectToPageResultExecuting"), "Executing RedirectToPageResult, redirecting to {Page}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1181if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1197global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "RedirectToRouteResultExecuting"), "Executing RedirectToRouteResult, redirecting to {Destination} from route {RouteName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1206if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1222global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(101, "ActionExecuting"), "Route matched with {RouteData}. Executing action {ActionName}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1235global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Reflection.MethodInfo, string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(102, "ControllerActionExecuting"), "Route matched with {RouteData}. Executing controller action with signature {MethodInfo} on controller {Controller} ({AssemblyName}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1248global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(103, "PageExecuting"), "Route matched with {RouteData}. Executing page {PageName}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1261global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(3, "AuthorizationFailure"), "Authorization failed for the request at filter '{AuthorizationFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1270if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1277global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ResourceFilterShortCircuit"), "Request was short circuited at resource filter '{ResourceFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1286if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1293global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "BeforeExecutingActionResult"), "Before executing action result {ActionResult}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1302if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 1309global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "AfterExecutingActionResult"), "After executing action result {ActionResult}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1318if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 1325global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(104, "PageExecuted"), "Executed page {PageName} in {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1338global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(105, "ActionExecuted"), "Executed action {ActionName} in {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1360global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "JsonResultExecuting"), "Executing JsonResult, writing value of type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1382global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ExecutingFileResult"), "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1395global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "WritingRangeToBody"), "Writing the requested range of bytes to the body...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1404if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1420global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "InputFormatterSelected"), "Selected input formatter '{InputFormatter}' for content type '{ContentType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1433global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "InputFormatterRejected"), "Rejected input formatter '{InputFormatter}' for content type '{ContentType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1446global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NoInputFormatterSelected"), "No input formatter was found to support the content type '{ContentType}' for use with the [FromBody] attribute.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1459global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "RemoveFromBodyAttribute"), "To use model binding, remove the [FromBody] attribute from the property or parameter named '{ModelName}' with model type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1533global::Microsoft.Extensions.Logging.LogLevel.Debug, 1593global::Microsoft.Extensions.Logging.LogLevel.Debug, 1652if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1655global::Microsoft.Extensions.Logging.LogLevel.Debug, 1673global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "NoPublicSettableItems"), "Could not bind to model with name '{ModelName}' and type '{ModelType}' as the type has no public settable properties or constructor parameters.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1682if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1689global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "CannotBindToComplexType"), "Could not bind to model of type '{ModelType}' as there were no values in the request for any of the properties.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1698if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1714global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "NoPublicSettableProperties"), "Could not bind to model with name '{ModelName}' and type '{ModelType}' as the type has no public settable properties.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1723if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1730global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "CannotBindToComplexType"), "Could not bind to model of type '{ModelType}' as there were no values in the request for any of the properties.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1739if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1806if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1809global::Microsoft.Extensions.Logging.LogLevel.Debug, 1827global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "NoFilesFoundInRequest"), "No files found in the request to bind the model to.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1836if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1852global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "CannotCreateHeaderModelBinder"), "Could not create a binder for type '{ModelType}' as this binder only supports simple types (like string, int, bool, enum) or a collection of simple types.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1861if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1877global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider[]>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "RegisteredModelBinderProviders"), "Registered model binder providers, in the following order: {ModelBinderProviders}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1886if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1902global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(22, "AttemptingToBindParameter"), "Attempting to bind parameter '{ParameterName}' of type '{ModelType}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1915global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(39, "AttemptingToBindProperty"), "Attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1928global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "DoneAttemptingToBindParameter"), "Done attempting to bind parameter '{ParameterName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1941global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(40, "DoneAttemptingToBindProperty"), "Done attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1954global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(26, "AttemptingToValidateParameter"), "Attempting to validate the bound parameter '{ParameterName}' of type '{ModelType}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1967global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(41, "AttemptingToValidateProperty"), "Attempting to validate the bound property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1980global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(27, "DoneAttemptingToValidateParameter"), "Done attempting to validate the bound parameter '{ParameterName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1989if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1996global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(42, "DoneAttemptingToValidateProperty"), "Done attempting to validate the bound property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2005if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2012global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(47, "ParameterBinderRequestPredicateShortCircuitOfProperty"), "Skipped binding property '{PropertyContainerType}.{PropertyName}' since its binding information disallowed it for the current request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2025global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(48, "ParameterBinderRequestPredicateShortCircuitOfParameter"), "Skipped binding parameter '{ParameterName}' since its binding information disallowed it for the current request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2045global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(52, "BeforeExecutingMethodOnFilter"), "{FilterType}: Before executing {Method} on filter {Filter}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2054if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 2061global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(53, "AfterExecutingMethodOnFilter"), "{FilterType}: After executing {Method} on filter {Filter}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2070if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 2077global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NoActionsMatched"), "No actions matched the current request. Route values: {RouteValues}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2090global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ResultFilterShortCircuit"), "Request was short circuited at result filter '{ResultFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2099if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2106global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ExceptionFilterShortCircuit"), "Request was short circuited at exception filter '{ExceptionFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2122global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(63, "ActionFilterShortCircuit"), "Request was short circuited at action filter '{ActionFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "FoundNoValueForPropertyInRequest"), "Could not find a value in the request with name '{ModelName}' for binding property '{PropertyContainerType}.{ModelFieldName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2151global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "FoundNoValueForParameterInRequest"), "Could not find a value in the request with name '{ModelName}' for binding parameter '{ModelFieldName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2164global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(46, "FoundNoValueInRequest"), "Could not find a value in the request with name '{ModelName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2177global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "CannotBindToFilesCollectionDueToUnsupportedContentType"), "Could not bind to model with name '{ModelName}' and type '{ModelType}' as the request did not have a content type of either 'application/x-www-form-urlencoded' or 'multipart/form-data'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2186if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2193global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(44, "AttemptingToBindParameterModel"), "Attempting to bind parameter '{ParameterName}' of type '{ModelType}' using the name '{ModelName}' in request data ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2206global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "AttemptingToBindPropertyModel"), "Attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' using the name '{ModelName}' in request data ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2219global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(24, "AttemptingToBindModel"), "Attempting to bind model of type '{ModelType}' using the name '{ModelName}' in request data ...", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2232global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type?, string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "DoneAttemptingToBindPropertyModel"), "Done attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2241if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 2248global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(25, "DoneAttemptingToBindModel"), "Done attempting to bind model of type '{ModelType}' using the name '{ModelName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2261global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(45, "DoneAttemptingToBindParameterModel"), "Done attempting to bind parameter '{ParameterName}' of type '{ModelType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2274global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string[]>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "FilterExecutionPlan"), "Execution plan of {FilterType} filters (in the following order): {Filters}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2295global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, global::System.Security.Claims.ClaimsPrincipal>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "SignInResultExecuting"), "Executing SignInResult with authentication scheme ({Scheme}) and the following principal: {Principal}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2304if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 2320global::Microsoft.Extensions.Logging.LoggerMessage.Define<string[]>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "SignOutResultExecuting"), "Executing SignOutResult with authentication schemes ({Schemes}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2342global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "HttpStatusCodeResultExecuting"), "Executing StatusCodeResult, setting HTTP status code {StatusCode}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 2351if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
ChallengeResult.cs (2)
117if (logger.IsEnabled(LogLevel.Information)) 123[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
Filters\DisableRequestSizeLimitFilter.cs (4)
62[LoggerMessage(1, LogLevel.Warning, "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", EventName = "FeatureNotFound")] 65[LoggerMessage(2, LogLevel.Warning, "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", EventName = "FeatureIsReadOnly")] 68[LoggerMessage(3, LogLevel.Debug, "The request body size limit has been disabled.", EventName = "RequestBodySizeLimitDisabled")] 71[LoggerMessage(4, LogLevel.Debug, "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Filters\OutputCacheFilter.cs (1)
53[LoggerMessage(1, LogLevel.Debug, "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Filters\RequestFormLimitsFilter.cs (3)
51[LoggerMessage(1, LogLevel.Warning, "Unable to apply configured form options since the request form has already been read.", EventName = "CannotApplyRequestFormLimits")] 54[LoggerMessage(2, LogLevel.Debug, "Applied the configured form options on the current request.", EventName = "AppliedRequestFormLimits")] 57[LoggerMessage(4, LogLevel.Debug, "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Filters\RequestSizeLimitFilter.cs (4)
64[LoggerMessage(1, LogLevel.Warning, "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", EventName = "FeatureNotFound")] 67[LoggerMessage(2, LogLevel.Warning, "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", EventName = "FeatureIsReadOnly")] 70[LoggerMessage(3, LogLevel.Debug, "The maximum request body size has been set to {RequestSize}.", EventName = "MaxRequestBodySizeSet")] 73[LoggerMessage(4, LogLevel.Debug, "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Filters\ResponseCacheFilter.cs (1)
105[LoggerMessage(4, LogLevel.Debug, "Execution of filter {OverriddenFilter} is preempted by filter {OverridingFilter} which is the most effective filter implementing policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
ForbidResult.cs (2)
118if (logger.IsEnabled(LogLevel.Information)) 124[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(ForbidResult)} with authentication schemes ({{Schemes}}).", EventName = "ForbidResultExecuting", SkipEnabledCheck = true)]
Formatters\FormatFilter.cs (4)
172[LoggerMessage(1, LogLevel.Debug, "Could not find a media type for the format '{FormatFilterContentType}'.", EventName = "UnsupportedFormatFilterContentType")] 175[LoggerMessage(2, LogLevel.Debug, "Current action does not support the content type '{FormatFilterContentType}'. The supported content types are '{SupportedMediaTypes}'.", EventName = "ActionDoesNotSupportFormatFilterContentType")] 178[LoggerMessage(3, LogLevel.Debug, "Cannot apply content type '{FormatFilterContentType}' to the response as current action had explicitly set a preferred content type.", EventName = "CannotApplyFormatFilterContentType")] 181[LoggerMessage(5, LogLevel.Debug, "Current action does not explicitly specify any content types for the response.", EventName = "ActionDoesNotExplicitlySpecifyContentTypes")]
Formatters\SystemTextJsonInputFormatter.cs (2)
148[LoggerMessage(1, LogLevel.Debug, "JSON input formatter threw an exception: {Message}", EventName = "SystemTextJsonInputException")] 154[LoggerMessage(2, LogLevel.Debug, "JSON input formatter succeeded, deserializing to type '{TypeName}'", EventName = "SystemTextJsonInputSuccess")]
Infrastructure\ActionSelector.cs (2)
252[LoggerMessage(1, LogLevel.Error, "Request matched multiple actions resulting in ambiguity. Matching actions: {AmbiguousActions}", EventName = "AmbiguousActions")] 255[LoggerMessage(2, LogLevel.Debug, "Action '{ActionName}' with id '{ActionId}' did not match the constraint '{ActionConstraint}'", EventName = "ConstraintMismatch")]
Infrastructure\ClientErrorResultFilter.cs (1)
60[LoggerMessage(49, LogLevel.Trace, "Replacing {InitialActionResultType} with status code {StatusCode} with {ReplacedActionResultType}.", EventName = "ClientErrorResultFilter")]
Infrastructure\ConfigureCompatibilityOptions.cs (3)
68if (_logger.IsEnabled(LogLevel.Debug)) 81if (_logger.IsEnabled(LogLevel.Debug)) 93if (_logger.IsEnabled(LogLevel.Debug))
Infrastructure\ContentResultExecutor.cs (1)
77[LoggerMessage(1, LogLevel.Information, "Executing ContentResult with HTTP Response ContentType of {ContentType}", EventName = "ContentResultExecuting")]
Infrastructure\ControllerActionInvoker.cs (11)
383if (_diagnosticListener.IsEnabled() || _logger.IsEnabled(LogLevel.Trace)) 591if (!logger.IsEnabled(LogLevel.Debug)) 601[LoggerMessage(1, LogLevel.Debug, "Executing controller factory for controller {Controller} ({AssemblyName})", EventName = "ControllerFactoryExecuting", SkipEnabledCheck = true)] 606if (!logger.IsEnabled(LogLevel.Debug)) 616[LoggerMessage(2, LogLevel.Debug, "Executed controller factory for controller {Controller} ({AssemblyName})", EventName = "ControllerFactoryExecuted", SkipEnabledCheck = true)] 621if (logger.IsEnabled(LogLevel.Information)) 628if (arguments != null && logger.IsEnabled(LogLevel.Trace)) 641[LoggerMessage(101, LogLevel.Information, "Executing action method {ActionName} - Validation state: {ValidationState}", EventName = "ActionMethodExecuting", SkipEnabledCheck = true)] 644[LoggerMessage(102, LogLevel.Trace, "Executing action method {ActionName} with arguments ({Arguments})", EventName = "ActionMethodExecutingWithArguments", SkipEnabledCheck = true)] 649if (logger.IsEnabled(LogLevel.Information)) 656[LoggerMessage(103, LogLevel.Information, "Executed action method {ActionName}, returned result {ActionResult} in {ElapsedMilliseconds}ms.", EventName = "ActionMethodExecuted", SkipEnabledCheck = true)]
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
177Level = LogLevel.Information,
Infrastructure\DefaultOutputFormatterSelector.cs (10)
290if (logger.IsEnabled(LogLevel.Debug)) 297[LoggerMessage(2, LogLevel.Debug, "Selected output formatter '{OutputFormatter}' and content type '{ContentType}' to write the response.", EventName = "FormatterSelected", SkipEnabledCheck = true)] 300[LoggerMessage(4, LogLevel.Debug, "No information found on request to perform content negotiation.", EventName = "NoAcceptForNegotiation")] 303[LoggerMessage(5, LogLevel.Debug, "Could not find an output formatter based on content negotiation. Accepted types were ({AcceptTypes})", EventName = "NoFormatterFromNegotiation")] 306[LoggerMessage(6, LogLevel.Debug, "Attempting to select an output formatter based on Accept header '{AcceptHeader}'.", EventName = "SelectingOutputFormatterUsingAcceptHeader")] 309[LoggerMessage(7, LogLevel.Debug, "Attempting to select an output formatter based on Accept header '{AcceptHeader}' and explicitly specified content types '{ExplicitContentTypes}'. The content types in the accept header must be a subset of the explicitly set content types.", EventName = "SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypes")] 312[LoggerMessage(8, LogLevel.Debug, "Attempting to select an output formatter without using a content type as no explicit content types were specified for the response.", EventName = "SelectingOutputFormatterWithoutUsingContentTypes")] 315[LoggerMessage(9, LogLevel.Debug, "Attempting to select the first output formatter in the output formatters list which supports a content type from the explicitly specified content types '{ExplicitContentTypes}'.", EventName = "SelectingOutputFormatterUsingContentTypes")] 318[LoggerMessage(10, LogLevel.Debug, "Attempting to select the first formatter in the output formatters list which can write the result.", EventName = "SelectingFirstCanWriteFormatter")] 321[LoggerMessage(11, LogLevel.Debug, "List of registered output formatters, in the following order: {OutputFormatters}", EventName = "RegisteredOutputFormatters")]
Infrastructure\FileContentResultExecutor.cs (3)
79if (logger.IsEnabled(LogLevel.Information)) 86[LoggerMessage(2, LogLevel.Information, "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResultWithNoFileName", SkipEnabledCheck = true)] 89[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body...", EventName = "WritingRangeToBody")]
Infrastructure\FileStreamResultExecutor.cs (3)
91if (logger.IsEnabled(LogLevel.Information)) 98[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResultWithNoFileName", SkipEnabledCheck = true)] 101[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body...", EventName = "WritingRangeToBody")]
Infrastructure\LocalRedirectResultExecutor.cs (1)
68[LoggerMessage(1, LogLevel.Information, "Executing LocalRedirectResult, redirecting to {Destination}.", EventName = "LocalRedirectResultExecuting")]
Infrastructure\ModelStateInvalidFilter.cs (1)
85[LoggerMessage(1, LogLevel.Debug, "The request has model state errors, returning an error response.", EventName = "ModelStateInvalidFilterExecuting")]
Infrastructure\ObjectResultExecutor.cs (4)
159if (logger.IsEnabled(LogLevel.Information)) 167[LoggerMessage(1, LogLevel.Information, "Executing {ObjectResultType}, writing value of type '{Type}'.", EventName = "ObjectResultExecuting", SkipEnabledCheck = true)] 172if (logger.IsEnabled(LogLevel.Warning)) 185[LoggerMessage(2, LogLevel.Warning, "No output formatter was found for content types '{ContentTypes}' to write the response.", EventName = "NoFormatter", SkipEnabledCheck = true)]
Infrastructure\PhysicalFileResultExecutor.cs (3)
167if (logger.IsEnabled(LogLevel.Information)) 174[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResult", SkipEnabledCheck = true)] 177[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body...", EventName = "WritingRangeToBody")]
Infrastructure\RedirectResultExecutor.cs (1)
65[LoggerMessage(1, LogLevel.Information, "Executing RedirectResult, redirecting to {Destination}.", EventName = "RedirectResultExecuting")]
Infrastructure\RedirectToActionResultExecutor.cs (1)
71[LoggerMessage(1, LogLevel.Information, "Executing RedirectResult, redirecting to {Destination}.", EventName = "RedirectToActionResultExecuting")]
Infrastructure\RedirectToPageResultExecutor.cs (1)
71[LoggerMessage(1, LogLevel.Information, "Executing RedirectToPageResult, redirecting to {Page}.", EventName = "RedirectToPageResultExecuting")]
Infrastructure\RedirectToRouteResultExecutor.cs (1)
67[LoggerMessage(1, LogLevel.Information, "Executing RedirectToRouteResult, redirecting to {Destination} from route {RouteName}.", EventName = "RedirectToRouteResultExecuting")]
Infrastructure\ResourceInvoker.cs (2)
63if (_diagnosticListener.IsEnabled() || _logger.IsEnabled(LogLevel.Information)) 267if (_diagnosticListener.IsEnabled() || _logger.IsEnabled(LogLevel.Trace))
Infrastructure\ResourceInvoker.Log.cs (11)
22if (logger.IsEnabled(LogLevel.Information)) 67[LoggerMessage(101, LogLevel.Information, "Route matched with {RouteData}. Executing action {ActionName}", EventName = "ActionExecuting", SkipEnabledCheck = true)] 70[LoggerMessage(102, LogLevel.Information, "Route matched with {RouteData}. Executing controller action with signature {MethodInfo} on controller {Controller} ({AssemblyName}).", EventName = "ControllerActionExecuting", SkipEnabledCheck = true)] 73[LoggerMessage(103, LogLevel.Information, "Route matched with {RouteData}. Executing page {PageName}", EventName = "PageExecuting", SkipEnabledCheck = true)] 76[LoggerMessage(3, LogLevel.Information, "Authorization failed for the request at filter '{AuthorizationFilter}'.", EventName = "AuthorizationFailure")] 79[LoggerMessage(4, LogLevel.Debug, "Request was short circuited at resource filter '{ResourceFilter}'.", EventName = "ResourceFilterShortCircuit")] 82[LoggerMessage(5, LogLevel.Trace, "Before executing action result {ActionResult}.", EventName = "BeforeExecutingActionResult")] 90[LoggerMessage(6, LogLevel.Trace, "After executing action result {ActionResult}.", EventName = "AfterExecutingActionResult")] 101if (logger.IsEnabled(LogLevel.Information)) 114[LoggerMessage(104, LogLevel.Information, "Executed page {PageName} in {ElapsedMilliseconds}ms", EventName = "PageExecuted", SkipEnabledCheck = true)] 117[LoggerMessage(105, LogLevel.Information, "Executed action {ActionName} in {ElapsedMilliseconds}ms", EventName = "ActionExecuted", SkipEnabledCheck = true)]
Infrastructure\SystemTextJsonResultExecutor.cs (2)
132[LoggerMessage(1, LogLevel.Information, "Executing JsonResult, writing value of type '{Type}'.", EventName = "JsonResultExecuting", SkipEnabledCheck = true)] 137if (logger.IsEnabled(LogLevel.Information))
Infrastructure\VirtualFileResultExecutor.cs (3)
149if (logger.IsEnabled(LogLevel.Information)) 156[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResult", SkipEnabledCheck = true)] 159[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body...", EventName = "WritingRangeToBody")]
ModelBinding\Binders\BodyModelBinder.cs (7)
204if (logger.IsEnabled(LogLevel.Debug)) 211[LoggerMessage(1, LogLevel.Debug, "Selected input formatter '{InputFormatter}' for content type '{ContentType}'.", EventName = "InputFormatterSelected", SkipEnabledCheck = true)] 216if (logger.IsEnabled(LogLevel.Debug)) 223[LoggerMessage(2, LogLevel.Debug, "Rejected input formatter '{InputFormatter}' for content type '{ContentType}'.", EventName = "InputFormatterRejected", SkipEnabledCheck = true)] 228if (logger.IsEnabled(LogLevel.Debug)) 241[LoggerMessage(3, LogLevel.Debug, "No input formatter was found to support the content type '{ContentType}' for use with the [FromBody] attribute.", EventName = "NoInputFormatterSelected", SkipEnabledCheck = true)] 244[LoggerMessage(4, LogLevel.Debug, "To use model binding, remove the [FromBody] attribute from the property or parameter named '{ModelName}' with model type '{ModelType}'.", EventName = "RemoveFromBodyAttribute", SkipEnabledCheck = true)]
ModelBinding\Binders\CollectionModelBinder.cs (4)
494if (!logger.IsEnabled(LogLevel.Debug)) 515[LoggerMessage(29, LogLevel.Debug, 524[LoggerMessage(30, LogLevel.Debug, 536[LoggerMessage(28, LogLevel.Debug, "Could not bind to collection using a format like {ModelName}=value1&{ModelName}=value2", EventName = "NoNonIndexBasedFormatFoundForCollection")]
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
736[LoggerMessage(17, LogLevel.Debug, "Could not bind to model with name '{ModelName}' and type '{ModelType}' as the type has no " + 748[LoggerMessage(18, LogLevel.Debug, "Could not bind to model of type '{ModelType}' as there were no values in the request for any of the properties.", EventName = "CannotBindToComplexType")]
ModelBinding\Binders\ComplexTypeModelBinder.cs (2)
577[LoggerMessage(17, LogLevel.Debug, "Could not bind to model with name '{ModelName}' and type '{ModelType}' as the type has no public settable properties.", EventName = "NoPublicSettableProperties")] 583[LoggerMessage(18, LogLevel.Debug, "Could not bind to model of type '{ModelType}' as there were no values in the request for any of the properties.", EventName = "CannotBindToComplexType")]
ModelBinding\Binders\DictionaryModelBinder.cs (1)
268[LoggerMessage(33, LogLevel.Debug, "Attempting to bind model with name '{ModelName}' using the format {ModelName}[key1]=value1&{ModelName}[key2]=value2", EventName = "NoKeyValueFormatForDictionaryModelBinder")]
ModelBinding\Binders\FormFileModelBinder.cs (1)
211[LoggerMessage(21, LogLevel.Debug, "No files found in the request to bind the model to.", EventName = "NoFilesFoundInRequest")]
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
67[LoggerMessage(20, LogLevel.Debug, "Could not create a binder for type '{ModelType}' as this binder only supports simple types (like string, int, bool, enum) or a collection of simple types.", EventName = "CannotCreateHeaderModelBinder")]
ModelBinding\ModelBinderFactory.cs (1)
325[LoggerMessage(12, LogLevel.Debug, "Registered model binder providers, in the following order: {ModelBinderProviders}", EventName = "RegisteredModelBinderProviders")]
ModelBinding\ParameterBinder.Log.cs (15)
20if (!logger.IsEnabled(LogLevel.Debug)) 55[LoggerMessage(22, LogLevel.Debug, "Attempting to bind parameter '{ParameterName}' of type '{ModelType}' ...", EventName = "AttemptingToBindParameter", SkipEnabledCheck = true)] 58[LoggerMessage(39, LogLevel.Debug, "Attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' ...", EventName = "AttemptingToBindProperty", SkipEnabledCheck = true)] 66if (!logger.IsEnabled(LogLevel.Debug)) 101[LoggerMessage(23, LogLevel.Debug, "Done attempting to bind parameter '{ParameterName}' of type '{ModelType}'.", EventName = "DoneAttemptingToBindParameter", SkipEnabledCheck = true)] 104[LoggerMessage(40, LogLevel.Debug, "Done attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", EventName = "DoneAttemptingToBindProperty", SkipEnabledCheck = true)] 112if (!logger.IsEnabled(LogLevel.Debug)) 148[LoggerMessage(26, LogLevel.Debug, "Attempting to validate the bound parameter '{ParameterName}' of type '{ModelType}' ...", EventName = "AttemptingToValidateParameter", SkipEnabledCheck = true)] 151[LoggerMessage(41, LogLevel.Debug, "Attempting to validate the bound property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' ...", EventName = "AttemptingToValidateProperty", SkipEnabledCheck = true)] 159if (!logger.IsEnabled(LogLevel.Debug)) 198[LoggerMessage(27, LogLevel.Debug, "Done attempting to validate the bound parameter '{ParameterName}' of type '{ModelType}'.", EventName = "DoneAttemptingToValidateParameter")] 201[LoggerMessage(42, LogLevel.Debug, "Done attempting to validate the bound property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", EventName = "DoneAttemptingToValidateProperty")] 209if (!logger.IsEnabled(LogLevel.Debug)) 245[LoggerMessage(47, LogLevel.Debug, "Skipped binding property '{PropertyContainerType}.{PropertyName}' since its binding information disallowed it for the current request.", 250[LoggerMessage(48, LogLevel.Debug, "Skipped binding parameter '{ParameterName}' since its binding information disallowed it for the current request.",
MvcCoreLoggerExtensions.cs (26)
27if (!logger.IsEnabled(LogLevel.Debug)) 38if (!logger.IsEnabled(LogLevel.Debug)) 49if (!logger.IsEnabled(LogLevel.Debug)) 60if (!logger.IsEnabled(LogLevel.Debug)) 71if (!logger.IsEnabled(LogLevel.Debug)) 80[LoggerMessage(52, LogLevel.Trace, "{FilterType}: Before executing {Method} on filter {Filter}.", EventName = "BeforeExecutingMethodOnFilter")] 83[LoggerMessage(53, LogLevel.Trace, "{FilterType}: After executing {Method} on filter {Filter}.", EventName = "AfterExecutingMethodOnFilter")] 88if (logger.IsEnabled(LogLevel.Debug)) 101[LoggerMessage(3, LogLevel.Debug, "No actions matched the current request. Route values: {RouteValues}", EventName = "NoActionsMatched", SkipEnabledCheck = true)] 104[LoggerMessage(5, LogLevel.Debug, "Request was short circuited at result filter '{ResultFilter}'.", EventName = "ResultFilterShortCircuit")] 107[LoggerMessage(4, LogLevel.Debug, "Request was short circuited at exception filter '{ExceptionFilter}'.", EventName = "ExceptionFilterShortCircuit")] 110[LoggerMessage(63, LogLevel.Debug, "Request was short circuited at action filter '{ActionFilter}'.", EventName = "ActionFilterShortCircuit")] 115if (!logger.IsEnabled(LogLevel.Debug)) 147[LoggerMessage(15, LogLevel.Debug, "Could not find a value in the request with name '{ModelName}' for binding property '{PropertyContainerType}.{ModelFieldName}' of type '{ModelType}'.", 152[LoggerMessage(16, LogLevel.Debug, "Could not find a value in the request with name '{ModelName}' for binding parameter '{ModelFieldName}' of type '{ModelType}'.", 157[LoggerMessage(46, LogLevel.Debug, "Could not find a value in the request with name '{ModelName}' of type '{ModelType}'.", EventName = "FoundNoValueInRequest", SkipEnabledCheck = true)] 163[LoggerMessage(19, LogLevel.Debug, 170if (!logger.IsEnabled(LogLevel.Debug)) 199[LoggerMessage(44, LogLevel.Debug, "Attempting to bind parameter '{ParameterName}' of type '{ModelType}' using the name '{ModelName}' in request data ...", EventName = "AttemptingToBindParameterModel", SkipEnabledCheck = true)] 202[LoggerMessage(13, LogLevel.Debug, "Attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}' using the name '{ModelName}' in request data ...", EventName = "AttemptingToBindPropertyModel", SkipEnabledCheck = true)] 205[LoggerMessage(24, LogLevel.Debug, "Attempting to bind model of type '{ModelType}' using the name '{ModelName}' in request data ...", EventName = "AttemptingToBindModel", SkipEnabledCheck = true)] 210if (!logger.IsEnabled(LogLevel.Debug)) 237[LoggerMessage(14, LogLevel.Debug, "Done attempting to bind property '{PropertyContainerType}.{PropertyName}' of type '{ModelType}'.", EventName = "DoneAttemptingToBindPropertyModel")] 240[LoggerMessage(25, LogLevel.Debug, "Done attempting to bind model of type '{ModelType}' using the name '{ModelName}'.", EventName = "DoneAttemptingToBindModel", SkipEnabledCheck = true)] 243[LoggerMessage(45, LogLevel.Debug, "Done attempting to bind parameter '{ParameterName}' of type '{ModelType}'.", EventName = "DoneAttemptingToBindParameterModel", SkipEnabledCheck = true)] 260[LoggerMessage(1, LogLevel.Debug, "Execution plan of {FilterType} filters (in the following order): {Filters}", EventName = "FilterExecutionPlan", SkipEnabledCheck = true)]
SignInResult.cs (1)
92[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(SignInResult)} with authentication scheme ({{Scheme}}) and the following principal: {{Principal}}.", EventName = "SignInResultExecuting")]
SignOutResult.cs (2)
134if (logger.IsEnabled(LogLevel.Information)) 140[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(SignOutResult)} with authentication schemes ({{Schemes}}).", EventName = "SignOutResultExecuting", SkipEnabledCheck = true)]
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (6)
398[LoggerMessage(17, LogLevel.Debug, "Writing the requested range of bytes to the body.", EventName = "WritingRangeToBody")] 401[LoggerMessage(34, LogLevel.Debug, 406[LoggerMessage(35, LogLevel.Debug, 414[LoggerMessage(36, LogLevel.Debug, 422[LoggerMessage(37, LogLevel.Debug, 430[LoggerMessage(38, LogLevel.Debug,
StatusCodeResult.cs (1)
48[LoggerMessage(1, LogLevel.Information, "Executing StatusCodeResult, setting HTTP status code {StatusCode}", EventName = "HttpStatusCodeResultExecuting")]
Microsoft.AspNetCore.Mvc.Cors (3)
_generated\0\LoggerMessage.g.cs (2)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "NotMostEffectiveFilter"), "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
CorsLoggerExtensions.cs (1)
10[LoggerMessage(1, LogLevel.Debug, "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Microsoft.AspNetCore.Mvc.Formatters.Xml (12)
_generated\0\LoggerMessage.g.cs (6)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "BufferingAsyncEnumerable"), "Buffering IAsyncEnumerable instance of type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 25global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToCreateDataContractSerializer"), "An error occurred while trying to create a DataContractSerializer for the type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 34if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 50global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "BufferingAsyncEnumerable"), "Buffering IAsyncEnumerable instance of type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 63global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToCreateXmlSerializer"), "An error occurred while trying to create an XmlSerializer for the type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 72if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
XmlDataContractSerializerOutputFormatter.cs (3)
309[LoggerMessage(1, LogLevel.Debug, "Buffering IAsyncEnumerable instance of type '{Type}'.", EventName = "BufferingAsyncEnumerable", SkipEnabledCheck = true)] 314if (logger.IsEnabled(LogLevel.Debug)) 320[LoggerMessage(2, LogLevel.Warning, "An error occurred while trying to create a DataContractSerializer for the type '{Type}'.", EventName = "FailedToCreateDataContractSerializer")]
XmlSerializerOutputFormatter.cs (3)
298[LoggerMessage(1, LogLevel.Debug, "Buffering IAsyncEnumerable instance of type '{Type}'.", EventName = "BufferingAsyncEnumerable", SkipEnabledCheck = true)] 303if (logger.IsEnabled(LogLevel.Debug)) 309[LoggerMessage(2, LogLevel.Warning, "An error occurred while trying to create an XmlSerializer for the type '{Type}'.", EventName = "FailedToCreateXmlSerializer")]
Microsoft.AspNetCore.Mvc.Razor (24)
_generated\0\LoggerMessage.g.cs (14)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ViewCompilerLocatedCompiledView"), "Initializing Razor view compiler with compiled view: '{ViewName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ViewCompilerNoCompiledViewsFound"), "Initializing Razor view compiler with no compiled views.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(5, "ViewCompilerLocatedCompiledViewForPath"), "Located compiled view for view at path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(7, "ViewCompilerCouldNotFindFileAtPath"), "Could not find a file for view at path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 85global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ViewLookupCacheMiss"), "View lookup cache miss for view '{ViewName}' in controller '{ControllerName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 94if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 101global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ViewLookupCacheHit"), "View lookup cache hit for view '{ViewName}' in controller '{ControllerName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 110if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 126global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "TagHelperComponentInitialized"), "Tag helper component '{ComponentName}' initialized.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 139global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "TagHelperComponentProcessed"), "Tag helper component '{ComponentName}' processed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
Compilation\DefaultViewCompiler.cs (4)
137[LoggerMessage(3, LogLevel.Debug, "Initializing Razor view compiler with compiled view: '{ViewName}'.", EventName = "ViewCompilerLocatedCompiledView")] 140[LoggerMessage(4, LogLevel.Debug, "Initializing Razor view compiler with no compiled views.", EventName = "ViewCompilerNoCompiledViewsFound")] 143[LoggerMessage(5, LogLevel.Trace, "Located compiled view for view at path '{Path}'.", EventName = "ViewCompilerLocatedCompiledViewForPath")] 146[LoggerMessage(7, LogLevel.Trace, "Could not find a file for view at path '{Path}'.", EventName = "ViewCompilerCouldNotFindFileAtPath")]
RazorViewEngine.cs (2)
496[LoggerMessage(1, LogLevel.Debug, "View lookup cache miss for view '{ViewName}' in controller '{ControllerName}'.", EventName = "ViewLookupCacheMiss")] 499[LoggerMessage(2, LogLevel.Debug, "View lookup cache hit for view '{ViewName}' in controller '{ControllerName}'.", EventName = "ViewLookupCacheHit")]
TagHelpers\TagHelperComponentTagHelper.cs (4)
70if (_logger.IsEnabled(LogLevel.Debug)) 84if (_logger.IsEnabled(LogLevel.Debug)) 93[LoggerMessage(2, LogLevel.Debug, "Tag helper component '{ComponentName}' initialized.", EventName = "TagHelperComponentInitialized", SkipEnabledCheck = true)] 96[LoggerMessage(3, LogLevel.Debug, "Tag helper component '{ComponentName}' processed.", EventName = "TagHelperComponentProcessed", SkipEnabledCheck = true)]
Microsoft.AspNetCore.Mvc.RazorPages (43)
_generated\0\LoggerMessage.g.cs (20)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "UnsupportedAreaPath"), "The page at '{FilePath}' is located under the area root directory '/Areas/' but does not follow the path format '/Areas/AreaName/Pages/Directory/FileName.cshtml", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (log.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 35global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "ExecutingModelFactory"), "Executing page model factory for page {Page} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 48global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "ExecutedModelFactory"), "Executed page model factory for page {Page} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 61global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "ExecutingPageFactory"), "Executing page factory for page {Page} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "ExecutedPageFactory"), "Executed page factory for page {Page} ({AssemblyName})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 87global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(105, "ExecutingHandlerMethod"), "Executing handler method {HandlerName} - ModelState is {ValidationState}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 100global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string[]>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(106, "HandlerMethodExecutingWithArguments"), "Executing handler method {HandlerName} with arguments ({Arguments})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 113global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(107, "ExecutingImplicitHandlerMethod"), "Executing an implicit handler method - ModelState is {ValidationState}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 126global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(108, "ExecutedHandlerMethod"), "Executed handler method {HandlerName}, returned result {ActionResult}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 135if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 142global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(109, "ExecutedImplicitHandlerMethod"), "Executed an implicit handler method, returned result {ActionResult}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 155global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(1, "BeforeExecutingMethodOnFilter"), "{FilterType}: Before executing {Method} on filter {Filter}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 164if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 171global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(2, "AfterExecutingMethodOnFilter"), "{FilterType}: After executing {Method} on filter {Filter}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 180if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 187global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "PageFilterShortCircuited"), "Request was short circuited at page filter '{PageFilter}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 196if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 203global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NotMostEffectiveFilter"), "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 212if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
ApplicationModels\PageRouteModelFactory.cs (1)
186[LoggerMessage(1, LogLevel.Warning, "The page at '{FilePath}' is located under the area root directory '/Areas/' but does not follow the path format '/Areas/AreaName/Pages/Directory/FileName.cshtml", EventName = "UnsupportedAreaPath")]
PageLoggerExtensions.cs (22)
19[LoggerMessage(101, LogLevel.Debug, "Executing page model factory for page {Page} ({AssemblyName})", EventName = "ExecutingModelFactory", SkipEnabledCheck = true)] 24if (!logger.IsEnabled(LogLevel.Debug)) 34[LoggerMessage(102, LogLevel.Debug, "Executed page model factory for page {Page} ({AssemblyName})", EventName = "ExecutedModelFactory", SkipEnabledCheck = true)] 39if (!logger.IsEnabled(LogLevel.Debug)) 49[LoggerMessage(103, LogLevel.Debug, "Executing page factory for page {Page} ({AssemblyName})", EventName = "ExecutingPageFactory", SkipEnabledCheck = true)] 54if (!logger.IsEnabled(LogLevel.Debug)) 64[LoggerMessage(104, LogLevel.Debug, "Executed page factory for page {Page} ({AssemblyName})", EventName = "ExecutedPageFactory", SkipEnabledCheck = true)] 69if (!logger.IsEnabled(LogLevel.Debug)) 79[LoggerMessage(105, LogLevel.Information, "Executing handler method {HandlerName} - ModelState is {ValidationState}", EventName = "ExecutingHandlerMethod", SkipEnabledCheck = true)] 82[LoggerMessage(106, LogLevel.Trace, "Executing handler method {HandlerName} with arguments ({Arguments})", EventName = "HandlerMethodExecutingWithArguments", SkipEnabledCheck = true)] 87if (logger.IsEnabled(LogLevel.Information)) 95if (arguments != null && logger.IsEnabled(LogLevel.Trace)) 108[LoggerMessage(107, LogLevel.Information, "Executing an implicit handler method - ModelState is {ValidationState}", EventName = "ExecutingImplicitHandlerMethod", SkipEnabledCheck = true)] 113if (logger.IsEnabled(LogLevel.Information)) 121[LoggerMessage(108, LogLevel.Information, "Executed handler method {HandlerName}, returned result {ActionResult}.", EventName = "ExecutedHandlerMethod")] 126if (logger.IsEnabled(LogLevel.Information)) 133[LoggerMessage(109, LogLevel.Information, "Executed an implicit handler method, returned result {ActionResult}.", EventName = "ExecutedImplicitHandlerMethod", SkipEnabledCheck = true)] 138if (logger.IsEnabled(LogLevel.Information)) 144[LoggerMessage(1, LogLevel.Trace, "{FilterType}: Before executing {Method} on filter {Filter}.", EventName = "BeforeExecutingMethodOnFilter")] 147[LoggerMessage(2, LogLevel.Trace, "{FilterType}: After executing {Method} on filter {Filter}.", EventName = "AfterExecutingMethodOnFilter")] 150[LoggerMessage(3, LogLevel.Debug, "Request was short circuited at page filter '{PageFilter}'.", EventName = "PageFilterShortCircuited")] 155[LoggerMessage(4, LogLevel.Debug, "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
Microsoft.AspNetCore.Mvc.TagHelpers (3)
_generated\0\LoggerMessage.g.cs (2)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(1, "DistributedFormatterDeserializationException"), "Couldn't deserialize cached value for key {Key}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
Cache\DistributedCacheTagHelperService.cs (1)
204[LoggerMessage(1, LogLevel.Error, "Couldn't deserialize cached value for key {Key}.", EventName = "DistributedFormatterDeserializationException")]
Microsoft.AspNetCore.Mvc.ViewFeatures (51)
_generated\0\LoggerMessage.g.cs (32)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "AntiforgeryTokenInvalid"), "Antiforgery token validation failed. {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 37global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string[]>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ViewComponentExecuting"), "Executing view component {ViewComponentName} with arguments ({Arguments}).", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 50global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, double, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ViewComponentExecuted"), "Executed view component {ViewComponentName} in {ElapsedMilliseconds}ms and returned {ViewComponentResult}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 72global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "TempDataCookieNotFound"), "The temp data cookie {CookieName} was not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 81if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 88global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataCookieLoadSuccess"), "The temp data cookie {CookieName} was used to successfully load temp data.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 97if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 104global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "TempDataCookieLoadFailure"), "The temp data cookie {CookieName} could not be loaded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 113if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 129global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "AntiforgeryTokenInvalid"), "Antiforgery token validation failed. {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 138if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 145global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(2, "NotMostEffectiveFilter"), "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 154if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "PartialViewResultExecuting"), "Executing PartialViewResult, running view {PartialViewName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "PartialViewFound"), "The partial view path '{PartialViewFilePath}' was found in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Collections.Generic.IEnumerable<string>>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(3, "PartialViewNotFound"), "The partial view '{PartialViewName}' was not found. Searched locations: {SearchedViewLocations}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "PartialViewResultExecuted"), "Executed PartialViewResult - view {PartialViewName} executed in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 243global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ViewComponentResultExecuting"), "Executing ViewComponentResult, running {ViewComponentName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 252if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 268global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ViewResultExecuting"), "Executing ViewResult, running view {ViewName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 277if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 284global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ViewFound"), "The view path '{ViewFilePath}' was found in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 293if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 300global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Collections.Generic.IEnumerable<string>>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(3, "ViewNotFound"), "The view '{ViewName}' was not found. Searched locations: {SearchedViewLocations}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 309if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 316global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, double>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "ViewResultExecuted"), "Executed ViewResult - view {ViewName} executed in {ElapsedMilliseconds}ms.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 325if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
CookieTempDataProvider.cs (3)
141[LoggerMessage(1, LogLevel.Debug, "The temp data cookie {CookieName} was not found.", EventName = "TempDataCookieNotFound")] 144[LoggerMessage(2, LogLevel.Debug, "The temp data cookie {CookieName} was used to successfully load temp data.", EventName = "TempDataCookieLoadSuccess")] 147[LoggerMessage(3, LogLevel.Warning, "The temp data cookie {CookieName} could not be loaded.", EventName = "TempDataCookieLoadFailure")]
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
34[LoggerMessage(1, LogLevel.Information, "Antiforgery token validation failed. {Message}", EventName = "AntiforgeryTokenInvalid")]
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (2)
56[LoggerMessage(1, LogLevel.Information, "Antiforgery token validation failed. {Message}", EventName = "AntiforgeryTokenInvalid")] 59[LoggerMessage(2, LogLevel.Trace, "Skipping the execution of current filter as its not the most effective filter implementing the policy {FilterPolicy}.", EventName = "NotMostEffectiveFilter")]
PartialViewResultExecutor.cs (4)
192[LoggerMessage(1, LogLevel.Information, "Executing PartialViewResult, running view {PartialViewName}.", EventName = "PartialViewResultExecuting")] 195[LoggerMessage(2, LogLevel.Debug, "The partial view path '{PartialViewFilePath}' was found in {ElapsedMilliseconds}ms.", EventName = "PartialViewFound")] 203[LoggerMessage(3, LogLevel.Error, "The partial view '{PartialViewName}' was not found. Searched locations: {SearchedViewLocations}", EventName = "PartialViewNotFound")] 206[LoggerMessage(4, LogLevel.Information, "Executed PartialViewResult - view {PartialViewName} executed in {ElapsedMilliseconds}ms.", EventName = "PartialViewResultExecuted")]
ViewComponentResultExecutor.cs (1)
164[LoggerMessage(1, LogLevel.Information, "Executing ViewComponentResult, running {ViewComponentName}.", EventName = "ViewComponentResultExecuting")]
ViewComponents\DefaultViewComponentInvoker.cs (4)
227[LoggerMessage(1, LogLevel.Debug, "Executing view component {ViewComponentName} with arguments ({Arguments}).", EventName = "ViewComponentExecuting", SkipEnabledCheck = true)] 230[LoggerMessage(2, LogLevel.Debug, "Executed view component {ViewComponentName} in {ElapsedMilliseconds}ms and returned {ViewComponentResult}", EventName = "ViewComponentExecuted", SkipEnabledCheck = true)] 244if (logger.IsEnabled(LogLevel.Debug)) 258if (logger.IsEnabled(LogLevel.Debug))
ViewResultExecutor.cs (4)
192[LoggerMessage(1, LogLevel.Information, "Executing ViewResult, running view {ViewName}.", EventName = "ViewResultExecuting")] 195[LoggerMessage(2, LogLevel.Debug, "The view path '{ViewFilePath}' was found in {ElapsedMilliseconds}ms.", EventName = "ViewFound")] 203[LoggerMessage(3, LogLevel.Error, "The view '{ViewName}' was not found. Searched locations: {SearchedViewLocations}", EventName = "ViewNotFound")] 206[LoggerMessage(4, LogLevel.Information, "Executed ViewResult - view {ViewName} executed in {ElapsedMilliseconds}ms.", EventName = "ViewResultExecuted")]
Microsoft.AspNetCore.OutputCaching (36)
_generated\0\LoggerMessage.g.cs (24)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "NotModifiedIfNoneMatchStar"), "The 'IfNoneMatch' header of the request contains a value of *.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "NotModifiedIfNoneMatchMatched"), "The ETag {ETag} in the 'IfNoneMatch' header matched the ETag of a cached entry.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NotModifiedIfModifiedSinceSatisfied"), "The last modified date of {LastModified} is before the date {IfModifiedSince} specified in the 'IfModifiedSince' header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "NotModifiedServed"), "The content requested has not been modified.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(5, "CachedResponseServed"), "Serving response from cache.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "GatewayTimeoutServed"), "No cached response available for this request and the 'only-if-cached' cache directive was specified.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(7, "NoResponseServed"), "No cached response available for this request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(8, "ResponseCached"), "The response has been cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(9, "ResponseNotCached"), "The response could not be cached for this request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(10, "ResponseContentLengthMismatchNotCached"), "The response could not be cached for this request because the 'Content-Length' did not match the body length.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(12, "UnableToQueryOutputCache"), "Unable to query output cache.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(13, "UnableToWriteToOutputCache"), "Unable to write to output-cache.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
LoggerExtensions.cs (12)
14[LoggerMessage(1, LogLevel.Debug, "The 'IfNoneMatch' header of the request contains a value of *.", EventName = "NotModifiedIfNoneMatchStar")] 17[LoggerMessage(2, LogLevel.Debug, "The ETag {ETag} in the 'IfNoneMatch' header matched the ETag of a cached entry.", 21[LoggerMessage(3, LogLevel.Debug, "The last modified date of {LastModified} is before the date {IfModifiedSince} specified in the 'IfModifiedSince' header.", 25[LoggerMessage(4, LogLevel.Information, "The content requested has not been modified.", EventName = "NotModifiedServed")] 28[LoggerMessage(5, LogLevel.Information, "Serving response from cache.", EventName = "CachedResponseServed")] 31[LoggerMessage(6, LogLevel.Information, "No cached response available for this request and the 'only-if-cached' cache directive was specified.", 35[LoggerMessage(7, LogLevel.Information, "No cached response available for this request.", EventName = "NoResponseServed")] 38[LoggerMessage(8, LogLevel.Information, "The response has been cached.", EventName = "ResponseCached")] 41[LoggerMessage(9, LogLevel.Information, "The response could not be cached for this request.", EventName = "ResponseNotCached")] 44[LoggerMessage(10, LogLevel.Warning, "The response could not be cached for this request because the 'Content-Length' did not match the body length.", 50[LoggerMessage(12, LogLevel.Error, "Unable to query output cache.", EventName = "UnableToQueryOutputCache")] 53[LoggerMessage(13, LogLevel.Error, "Unable to write to output-cache.", EventName = "UnableToWriteToOutputCache")]
Microsoft.AspNetCore.RateLimiting (9)
_generated\0\LoggerMessage.g.cs (6)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestRejectedLimitsExceeded"), "Rate limits exceeded, rejecting this request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "WarnMissingPolicy"), "This endpoint requires a rate limiting policy with name {PolicyName}, but no such policy exists.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RequestCanceled"), "The request was canceled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
RateLimitingMiddleware.cs (3)
290[LoggerMessage(1, LogLevel.Debug, "Rate limits exceeded, rejecting this request.", EventName = "RequestRejectedLimitsExceeded")] 293[LoggerMessage(2, LogLevel.Debug, "This endpoint requires a rate limiting policy with name {PolicyName}, but no such policy exists.", EventName = "WarnMissingPolicy")] 296[LoggerMessage(3, LogLevel.Debug, "The request was canceled.", EventName = "RequestCanceled")]
Microsoft.AspNetCore.RequestDecompression (12)
_generated\0\LoggerMessage.g.cs (7)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(1, "NoContentEncoding"), "The Content-Encoding header is empty or not specified. Skipping request decompression.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "MultipleContentEncodingsSpecified"), "Request decompression is not supported for multiple Content-Encodings.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "NoDecompressionProvider"), "No matching request decompression provider found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "DecompressingWith"), "The request will be decompressed with '{ContentEncoding}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
DefaultRequestDecompressionProvider.cs (5)
63[LoggerMessage(1, LogLevel.Trace, "The Content-Encoding header is empty or not specified. Skipping request decompression.", EventName = "NoContentEncoding")] 66[LoggerMessage(2, LogLevel.Debug, "Request decompression is not supported for multiple Content-Encodings.", EventName = "MultipleContentEncodingsSpecified")] 69[LoggerMessage(3, LogLevel.Debug, "No matching request decompression provider found.", EventName = "NoDecompressionProvider")] 74if (logger.IsEnabled(LogLevel.Debug)) 80[LoggerMessage(4, LogLevel.Debug, "The request will be decompressed with '{ContentEncoding}'.", EventName = "DecompressingWith", SkipEnabledCheck = true)]
Microsoft.AspNetCore.ResponseCaching (90)
_generated\0\LoggerMessage.g.cs (60)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestMethodNotCacheable"), "The request cannot be served from cache because it uses the HTTP method: {Method}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "RequestWithAuthorizationNotCacheable"), "The request cannot be served from cache because it contains an 'Authorization' header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RequestWithNoCacheNotCacheable"), "The request cannot be served from cache because it contains a 'no-cache' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "RequestWithPragmaNoCacheNotCacheable"), "The request cannot be served from cache because it contains a 'no-cache' pragma directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "LogRequestMethodNotCacheable"), "Adding a minimum freshness requirement of {Duration} specified by the 'min-fresh' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ExpirationSharedMaxAgeExceeded"), "The age of the entry is {Age} and has exceeded the maximum age for shared caches of {SharedMaxAge} specified by the 's-maxage' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "ExpirationMustRevalidate"), "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive. It must be revalidated because the 'must-revalidate' or 'proxy-revalidate' cache directive is specified.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "ExpirationMaxStaleSatisfied"), "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive. However, it satisfied the maximum stale allowance of {MaxStale} specified by the 'max-stale' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ExpirationMaxAgeExceeded"), "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "ExpirationExpiresExceeded"), "The response time of the entry is {ResponseTime} and has exceeded the expiry date of {Expired} specified by the 'Expires' header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "ResponseWithoutPublicNotCacheable"), "Response is not cacheable because it does not contain the 'public' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "ResponseWithNoStoreNotCacheable"), "Response is not cacheable because it or its corresponding request contains a 'no-store' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "ResponseWithNoCacheNotCacheable"), "Response is not cacheable because it contains a 'no-cache' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "ResponseWithSetCookieNotCacheable"), "Response is not cacheable because it contains a 'SetCookie' header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 234global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "ResponseWithVaryStarNotCacheable"), "Response is not cacheable because it contains a '.Vary' header with a value of *.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 243if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 250global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "ResponseWithPrivateNotCacheable"), "Response is not cacheable because it contains the 'private' cache directive.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 259if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 266global::Microsoft.Extensions.Logging.LoggerMessage.Define<int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "ResponseWithUnsuccessfulStatusCodeNotCacheable"), "Response is not cacheable because its status code {StatusCode} does not indicate success.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 275if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 282global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "NotModifiedIfNoneMatchStar"), "The 'IfNoneMatch' header of the request contains a value of *.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 291if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 298global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Net.Http.Headers.EntityTagHeaderValue>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "NotModifiedIfNoneMatchMatched"), "The ETag {ETag} in the 'IfNoneMatch' header matched the ETag of a cached entry.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 307if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 314global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "NotModifiedIfModifiedSinceSatisfied"), "The last modified date of {LastModified} is before the date {IfModifiedSince} specified in the 'IfModifiedSince' header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 323if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 330global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(21, "NotModifiedServed"), "The content requested has not been modified.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 339if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 346global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(22, "CachedResponseServed"), "Serving response from cache.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 355if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 362global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(23, "GatewayTimeoutServed"), "No cached response available for this request and the 'only-if-cached' cache directive was specified.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 371if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 378global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(24, "NoResponseServed"), "No cached response available for this request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 387if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 394global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(25, "VaryByRulesUpdated"), "Vary by rules were updated. Headers: {Headers}, Query keys: {QueryKeys}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 403if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 410global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(26, "ResponseCached"), "The response has been cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 419if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 426global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(27, "ResponseNotCached"), "The response could not be cached for this request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 435if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 442global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(28, "responseContentLengthMismatchNotCached"), "The response could not be cached for this request because the 'Content-Length' did not match the body length.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 451if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 458global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(29, "ExpirationInfiniteMaxStaleSatisfied"), "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive. However, the 'max-stale' cache directive was specified without an assigned value and a stale response of any age is accepted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 467if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 474global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(30, "RequestContainsInvalidCacheSymbols"), "The request contains invalid characters and will not be cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 483if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
LoggerExtensions.cs (30)
14[LoggerMessage(1, LogLevel.Debug, "The request cannot be served from cache because it uses the HTTP method: {Method}.", 18[LoggerMessage(2, LogLevel.Debug, "The request cannot be served from cache because it contains an 'Authorization' header.", 22[LoggerMessage(3, LogLevel.Debug, "The request cannot be served from cache because it contains a 'no-cache' cache directive.", 26[LoggerMessage(4, LogLevel.Debug, "The request cannot be served from cache because it contains a 'no-cache' pragma directive.", 30[LoggerMessage(5, LogLevel.Debug, "Adding a minimum freshness requirement of {Duration} specified by the 'min-fresh' cache directive.", 34[LoggerMessage(6, LogLevel.Debug, "The age of the entry is {Age} and has exceeded the maximum age for shared caches of {SharedMaxAge} specified by the 's-maxage' cache directive.", 38[LoggerMessage(7, LogLevel.Debug, "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive. " + 43[LoggerMessage(8, LogLevel.Debug, "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive. " + 48[LoggerMessage(9, LogLevel.Debug, "The age of the entry is {Age} and has exceeded the maximum age of {MaxAge} specified by the 'max-age' cache directive.", EventName = "ExpirationMaxAgeExceeded")] 51[LoggerMessage(10, LogLevel.Debug, "The response time of the entry is {ResponseTime} and has exceeded the expiry date of {Expired} specified by the 'Expires' header.", 55[LoggerMessage(11, LogLevel.Debug, "Response is not cacheable because it does not contain the 'public' cache directive.", 59[LoggerMessage(12, LogLevel.Debug, "Response is not cacheable because it or its corresponding request contains a 'no-store' cache directive.", 62[LoggerMessage(13, LogLevel.Debug, "Response is not cacheable because it contains a 'no-cache' cache directive.", 66[LoggerMessage(14, LogLevel.Debug, "Response is not cacheable because it contains a 'SetCookie' header.", EventName = "ResponseWithSetCookieNotCacheable")] 69[LoggerMessage(15, LogLevel.Debug, "Response is not cacheable because it contains a '.Vary' header with a value of *.", 73[LoggerMessage(16, LogLevel.Debug, "Response is not cacheable because it contains the 'private' cache directive.", 77[LoggerMessage(17, LogLevel.Debug, "Response is not cacheable because its status code {StatusCode} does not indicate success.", 81[LoggerMessage(18, LogLevel.Debug, "The 'IfNoneMatch' header of the request contains a value of *.", EventName = "NotModifiedIfNoneMatchStar")] 84[LoggerMessage(19, LogLevel.Debug, "The ETag {ETag} in the 'IfNoneMatch' header matched the ETag of a cached entry.", 88[LoggerMessage(20, LogLevel.Debug, "The last modified date of {LastModified} is before the date {IfModifiedSince} specified in the 'IfModifiedSince' header.", 92[LoggerMessage(21, LogLevel.Information, "The content requested has not been modified.", EventName = "NotModifiedServed")] 95[LoggerMessage(22, LogLevel.Information, "Serving response from cache.", EventName = "CachedResponseServed")] 98[LoggerMessage(23, LogLevel.Information, "No cached response available for this request and the 'only-if-cached' cache directive was specified.", 102[LoggerMessage(24, LogLevel.Information, "No cached response available for this request.", EventName = "NoResponseServed")] 105[LoggerMessage(25, LogLevel.Debug, "Vary by rules were updated. Headers: {Headers}, Query keys: {QueryKeys}", EventName = "VaryByRulesUpdated")] 108[LoggerMessage(26, LogLevel.Information, "The response has been cached.", EventName = "ResponseCached")] 111[LoggerMessage(27, LogLevel.Information, "The response could not be cached for this request.", EventName = "ResponseNotCached")] 114[LoggerMessage(28, LogLevel.Warning, "The response could not be cached for this request because the 'Content-Length' did not match the body length.", 118[LoggerMessage(29, LogLevel.Debug, 124[LoggerMessage(30, LogLevel.Debug, "The request contains invalid characters and will not be cached.",
Microsoft.AspNetCore.ResponseCompression (24)
_generated\0\LoggerMessage.g.cs (16)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "NoAcceptEncoding"), "No response compression available, the Accept-Encoding header is missing or invalid.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "NoCompressionForHttps"), "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "RequestAcceptsCompression"), "This request accepts compression.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "NoCompressionDueToHeader"), "Response compression disabled due to the {header} header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "NoCompressionForContentType"), "Response compression is not enabled for the Content-Type '{header}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "ShouldCompressResponse"), "Response compression is available for this Content-Type.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "NoCompressionProvider"), "No matching response compression provider found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "CompressWith"), "The response will be compressed with '{provider}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
ResponseCompressionLoggingExtensions.cs (8)
10[LoggerMessage(1, LogLevel.Debug, "No response compression available, the Accept-Encoding header is missing or invalid.", EventName = "NoAcceptEncoding")] 13[LoggerMessage(2, LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps.", EventName = "NoCompressionForHttps")] 16[LoggerMessage(3, LogLevel.Trace, "This request accepts compression.", EventName = "RequestAcceptsCompression")] 19[LoggerMessage(4, LogLevel.Debug, "Response compression disabled due to the {header} header.", EventName = "NoCompressionDueToHeader")] 22[LoggerMessage(5, LogLevel.Debug, "Response compression is not enabled for the Content-Type '{header}'.", EventName = "NoCompressionForContentType")] 25[LoggerMessage(6, LogLevel.Trace, "Response compression is available for this Content-Type.", EventName = "ShouldCompressResponse")] 28[LoggerMessage(7, LogLevel.Debug, "No matching response compression provider found.", EventName = "NoCompressionProvider")] 31[LoggerMessage(8, LogLevel.Debug, "The response will be compressed with '{provider}'.", EventName = "CompressWith")]
Microsoft.AspNetCore.Rewrite (42)
_generated\0\LoggerMessage.g.cs (28)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestContinueResults"), "Request is continuing in applying rules. Current url is {currentUrl}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "RequestResponseComplete"), "Request is done processing. Location header '{Location}' with status code '{StatusCode}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "RequestStopRules"), "Request is done applying rules. Url was rewritten to {rewrittenUrl}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "UrlRewriteNotMatchedRule"), "Request did not match current rule '{Name}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "UrlRewriteMatchedRule"), "Request matched current UrlRewriteRule '{Name}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ModRewriteNotMatchedRule"), "Request matched current ModRewriteRule.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "ModRewriteMatchedRule"), "Request matched current ModRewriteRule.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(8, "RedirectedToHttps"), "Request redirected to HTTPS", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(13, "RedirectedToWww"), "Request redirected to www", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(14, "RedirectedToNonWww"), "Request redirected to root domain from www subdomain", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(9, "RedirectedRequest"), "Request was redirected to {redirectedUrl}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "RewritetenRequest"), "Request was rewritten to {rewrittenUrl}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "AbortedRequest"), "Request to {requestedUrl} was aborted", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "CustomResponse"), "Request to {requestedUrl} was ended", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
Extensions\RewriteMiddlewareLoggingExtensions.cs (14)
10[LoggerMessage(1, LogLevel.Debug, "Request is continuing in applying rules. Current url is {currentUrl}", EventName = "RequestContinueResults")] 13[LoggerMessage(2, LogLevel.Debug, "Request is done processing. Location header '{Location}' with status code '{StatusCode}'.", EventName = "RequestResponseComplete")] 16[LoggerMessage(3, LogLevel.Debug, "Request is done applying rules. Url was rewritten to {rewrittenUrl}", EventName = "RequestStopRules")] 19[LoggerMessage(4, LogLevel.Debug, "Request did not match current rule '{Name}'.", EventName = "UrlRewriteNotMatchedRule")] 22[LoggerMessage(5, LogLevel.Debug, "Request matched current UrlRewriteRule '{Name}'.", EventName = "UrlRewriteMatchedRule")] 25[LoggerMessage(6, LogLevel.Debug, "Request matched current ModRewriteRule.", EventName = "ModRewriteNotMatchedRule")] 28[LoggerMessage(7, LogLevel.Debug, "Request matched current ModRewriteRule.", EventName = "ModRewriteMatchedRule")] 31[LoggerMessage(8, LogLevel.Information, "Request redirected to HTTPS", EventName = "RedirectedToHttps")] 34[LoggerMessage(13, LogLevel.Information, "Request redirected to www", EventName = "RedirectedToWww")] 37[LoggerMessage(14, LogLevel.Information, "Request redirected to root domain from www subdomain", EventName = "RedirectedToNonWww")] 39[LoggerMessage(9, LogLevel.Information, "Request was redirected to {redirectedUrl}", EventName = "RedirectedRequest")] 42[LoggerMessage(10, LogLevel.Information, "Request was rewritten to {rewrittenUrl}", EventName = "RewritetenRequest")] 45[LoggerMessage(11, LogLevel.Debug, "Request to {requestedUrl} was aborted", EventName = "AbortedRequest")] 48[LoggerMessage(12, LogLevel.Debug, "Request to {requestedUrl} was ended", EventName = "CustomResponse")]
Microsoft.AspNetCore.Routing (111)
_generated\0\LoggerMessage.g.cs (57)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestNotMatched"), "Request did not match any routes", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 37global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<string?>, object?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(100, "EndpointsFound"), "Found the endpoints {Endpoints} for address {Address}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 50global::Microsoft.Extensions.Logging.LoggerMessage.Define<object?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "EndpointsNotFound"), "No endpoints found for address {Address}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 59if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 66global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?, string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "TemplateSucceeded"), "Successfully processed template {Template} for {Endpoint} resulting in {Path} and {Query}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 75if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 82global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "TemplateFailedRequiredValues"), "Failed to process the template {Template} for {Endpoint}. A required route value is missing, or has a different value from the required default values. Supplied ambient values {AmbientValues} and {Values} with default values {Defaults}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 95global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?, global::Microsoft.AspNetCore.Routing.IRouteConstraint?, string?, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(107, "TemplateFailedConstraint"), "Failed to process the template {Template} for {Endpoint}. The constraint {Constraint} for parameter {ParameterName} failed with values {Values}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 108global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(104, "TemplateFailedExpansion"), "Failed to process the template {Template} for {Endpoint}. The failure occurred while expanding the template with values {Values} This is usually due to a missing or empty value in a complex segment", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 121global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<string?>, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(105, "LinkGenerationSucceeded"), "Link generation succeeded for endpoints {Endpoints} with result {URI}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 134global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<string?>>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(106, "LinkGenerationFailed"), "Link generation failed for endpoints {Endpoints}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 156global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<string?>, object?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(100, "EndpointsFound"), "Found the endpoints {Endpoints} for address {Address}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 169global::Microsoft.Extensions.Logging.LoggerMessage.Define<object?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "EndpointsNotFound"), "No endpoints found for address {Address}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 178if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 185global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "PathParsingSucceeded"), "Path parsing succeeded for endpoint {Endpoint} and URI path {URI}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 198global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.IEnumerable<string?>, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "PathParsingFailed"), "Path parsing failed for endpoints {Endpoints} and URI path {URI}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 220global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(0, "ExecutingEndpoint"), "Executing endpoint '{EndpointName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 229if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 236global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(1, "ExecutedEndpoint"), "Executed endpoint '{EndpointName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 245if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 261global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "MatchSuccess"), "Request matched endpoint '{EndpointName}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 270if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 277global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "MatchFailure"), "Request did not match any endpoints", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 286if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 293global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "MatchingSkipped"), "Endpoint '{EndpointName}' already set, skipping route matching.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 302if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 309global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "ExecutingEndpoint"), "The endpoint '{EndpointName}' is being executed without running additional middleware.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 318if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 325global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(5, "ExecutedEndpoint"), "The endpoint '{EndpointName}' has been executed without running additional middleware.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 334if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 341global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "ShortCircuitedEndpoint"), "The endpoint '{EndpointName}' is being short circuited without running additional middleware or producing a response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 350if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 357global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.Http.Endpoint>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "FallbackMatch"), "Matched endpoint '{EndpointName}' is a fallback endpoint.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 366if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 373global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(8, "RequestSizeLimitMetadataNotFound"), "The endpoint does not specify the IRequestSizeLimitMetadata.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 382if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 389global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RequestSizeFeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpMaxRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 398if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 405global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(10, "RequestSizeFeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpMaxRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 414if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 421global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "MaxRequestBodySizeSet"), "The maximum request body size has been set to {RequestSize}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 430if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 437global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "MaxRequestBodySizeDisabled"), "The maximum request body size has been disabled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 446if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 462global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1000, "CandidatesNotFound"), "No candidates found for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 475global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1001, "CandidatesFound"), "{CandidateCount} candidate(s) found for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 488global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1002, "CandidateRejectedByComplexSegment"), "Endpoint '{Endpoint}' with route pattern '{RoutePattern}' was rejected by complex segment '{Segment}' for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 501global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, string, string?, object?, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1003, "CandidateRejectedByConstraint"), "Endpoint '{Endpoint}' with route pattern '{RoutePattern}' was rejected by constraint '{ConstraintName}':'{Constraint}' with value '{RouteValue}' for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 514global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1004, "CandidateNotValid"), "Endpoint '{Endpoint}' with route pattern '{RoutePattern}' is not valid for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 527global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1005, "CandidateValid"), "Endpoint '{Endpoint}' with route pattern '{RoutePattern}' is valid for the request path '{Path}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 549global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestMatchedRoute"), "Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 558if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 574global::Microsoft.Extensions.Logging.LoggerMessage.Define<object, string, global::Microsoft.AspNetCore.Routing.IRouteConstraint>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ConstraintNotMatched"), "Route value '{RouteValue}' with key '{RouteKey}' did not match the constraint '{RouteConstraint}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 583if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 599global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RequestMatchedRoute"), "Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 608if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
DefaultLinkGenerator.cs (14)
342if (logger.IsEnabled(LogLevel.Debug)) 348[LoggerMessage(100, LogLevel.Debug, "Found the endpoints {Endpoints} for address {Address}", EventName = "EndpointsFound", SkipEnabledCheck = true)] 351[LoggerMessage(101, LogLevel.Debug, "No endpoints found for address {Address}", EventName = "EndpointsNotFound")] 357[LoggerMessage(102, LogLevel.Debug, 365if (logger.IsEnabled(LogLevel.Debug)) 371[LoggerMessage(103, LogLevel.Debug, 382if (logger.IsEnabled(LogLevel.Debug)) 388[LoggerMessage(107, LogLevel.Debug, 398if (logger.IsEnabled(LogLevel.Debug)) 404[LoggerMessage(104, LogLevel.Debug, 415if (logger.IsEnabled(LogLevel.Debug)) 421[LoggerMessage(105, LogLevel.Debug, 430if (logger.IsEnabled(LogLevel.Debug)) 436[LoggerMessage(106, LogLevel.Debug, "Link generation failed for endpoints {Endpoints}", EventName = "LinkGenerationFailed", SkipEnabledCheck = true)]
DefaultLinkParser.cs (7)
175if (logger.IsEnabled(LogLevel.Debug)) 181[LoggerMessage(100, LogLevel.Debug, "Found the endpoints {Endpoints} for address {Address}", EventName = "EndpointsFound", SkipEnabledCheck = true)] 184[LoggerMessage(101, LogLevel.Debug, "No endpoints found for address {Address}", EventName = "EndpointsNotFound")] 190if (logger.IsEnabled(LogLevel.Debug)) 196[LoggerMessage(102, LogLevel.Debug, "Path parsing succeeded for endpoint {Endpoint} and URI path {URI}", EventName = "PathParsingSucceeded", SkipEnabledCheck = true)] 202if (logger.IsEnabled(LogLevel.Debug)) 208[LoggerMessage(103, LogLevel.Debug, "Path parsing failed for endpoints {Endpoints} and URI path {URI}", EventName = "PathParsingFailed", SkipEnabledCheck = true)]
EndpointMiddleware.cs (3)
62if (!_logger.IsEnabled(LogLevel.Information)) 131[LoggerMessage(0, LogLevel.Information, "Executing endpoint '{EndpointName}'", EventName = "ExecutingEndpoint")] 134[LoggerMessage(1, LogLevel.Information, "Executed endpoint '{EndpointName}'", EventName = "ExecutedEndpoint")]
EndpointRoutingMiddleware.cs (14)
118if (_logger.IsEnabled(LogLevel.Debug) || _metrics.MatchSuccessCounterEnabled) 188if (!_logger.IsEnabled(LogLevel.Information)) 342[LoggerMessage(1, LogLevel.Debug, "Request matched endpoint '{EndpointName}'", EventName = "MatchSuccess")] 345[LoggerMessage(2, LogLevel.Debug, "Request did not match any endpoints", EventName = "MatchFailure")] 351[LoggerMessage(3, LogLevel.Debug, "Endpoint '{EndpointName}' already set, skipping route matching.", EventName = "MatchingSkipped")] 354[LoggerMessage(4, LogLevel.Information, "The endpoint '{EndpointName}' is being executed without running additional middleware.", EventName = "ExecutingEndpoint")] 357[LoggerMessage(5, LogLevel.Information, "The endpoint '{EndpointName}' has been executed without running additional middleware.", EventName = "ExecutedEndpoint")] 360[LoggerMessage(6, LogLevel.Information, "The endpoint '{EndpointName}' is being short circuited without running additional middleware or producing a response.", EventName = "ShortCircuitedEndpoint")] 363[LoggerMessage(7, LogLevel.Debug, "Matched endpoint '{EndpointName}' is a fallback endpoint.", EventName = "FallbackMatch")] 366[LoggerMessage(8, LogLevel.Trace, $"The endpoint does not specify the {nameof(IRequestSizeLimitMetadata)}.", EventName = "RequestSizeLimitMetadataNotFound")] 369[LoggerMessage(9, LogLevel.Warning, $"A request body size limit could not be applied. This server does not support the {nameof(IHttpMaxRequestBodySizeFeature)}.", EventName = "RequestSizeFeatureNotFound")] 372[LoggerMessage(10, LogLevel.Warning, $"A request body size limit could not be applied. The {nameof(IHttpMaxRequestBodySizeFeature)} for the server is read-only.", EventName = "RequestSizeFeatureIsReadOnly")] 375[LoggerMessage(11, LogLevel.Debug, "The maximum request body size has been set to {RequestSize}.", EventName = "MaxRequestBodySizeSet")] 378[LoggerMessage(12, LogLevel.Debug, "The maximum request body size has been disabled.", EventName = "MaxRequestBodySizeDisabled")]
Matching\DfaMatcher.cs (11)
37var log = _logger.IsEnabled(LogLevel.Debug); 349[LoggerMessage(1000, LogLevel.Debug, 358[LoggerMessage(1001, LogLevel.Debug, 367if (logger.IsEnabled(LogLevel.Debug)) 374[LoggerMessage(1002, LogLevel.Debug, 383if (logger.IsEnabled(LogLevel.Debug)) 390[LoggerMessage(1003, LogLevel.Debug, 399if (logger.IsEnabled(LogLevel.Debug)) 406[LoggerMessage(1004, LogLevel.Debug, 415if (logger.IsEnabled(LogLevel.Debug)) 422[LoggerMessage(1005, LogLevel.Debug,
RouteBase.cs (1)
344[LoggerMessage(1, LogLevel.Debug,
RouteConstraintMatcher.cs (1)
89[LoggerMessage(1, LogLevel.Debug,
RouteHandlerOptions.cs (1)
19/// writing a <see cref="LogLevel.Debug"/> log when handling invalid requests.
RouterMiddleware.cs (1)
70[LoggerMessage(1, LogLevel.Debug, "Request did not match any routes", EventName = "RequestNotMatched")]
Tree\TreeRouter.cs (1)
353[LoggerMessage(1, LogLevel.Debug,
Microsoft.AspNetCore.Server.Kestrel.Core (290)
_generated\0\LoggerMessage.g.cs (174)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "DirectoryDoesNotExist"), "Directory '{Directory}' does not exist so changes to the certificate '{Path}' will not be tracked.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "UnknownFile"), "Attempted to remove watch from unwatched path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "UnknownObserver"), "Attempted to remove unknown observer from path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "CreatedDirectoryWatcher"), "Created directory watcher for '{Directory}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "CreatedFileWatcher"), "Created file watcher for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "RemovedDirectoryWatcher"), "Removed directory watcher for '{Directory}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "RemovedFileWatcher"), "Removed file watcher for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "LastModifiedTimeError"), "Error retrieving last modified time for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "UntrackedFileEvent"), "Ignored event for presently untracked file '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(10, "ReusedObserver"), "Reused existing observer on file watcher for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(11, "AddedObserver"), "Added observer to file watcher for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(12, "RemovedObserver"), "Removed observer from file watcher for '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(13, "ObserverCount"), "File '{Path}' now has {Count} observers.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(14, "FileCount"), "Directory '{Directory}' now has watchers on {Count} files.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 289if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 292global::Microsoft.Extensions.Logging.LogLevel.Trace, 301global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(16, "EventWithoutFile"), "Ignored event since '{Path}' was unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 310if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 325global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(17, "ConnectionBadRequest"), "Connection id \"{ConnectionId}\" bad request data: \"{message}\"", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 334if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 341global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "RequestProcessingError"), "Connection id \"{ConnectionId}\" request processing ended abnormally.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 350if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 357global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(27, "RequestBodyMinimumDataRateNotSatisfied"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": the request timed out because it was not sent by the client at a minimum of {Rate} bytes/second.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 366if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 373global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(28, "ResponseMinimumDataRateNotSatisfied"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": the connection was closed because the response was not read by the client at the specified minimum data rate.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 382if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 389global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(54, "PossibleInvalidHttpVersionDetected"), "Connection id \"{ConnectionId}\": Invalid content received on connection. Possible incorrect HTTP version detected. Expected {ExpectedHttpVersion} but received {DetectedHttpVersion}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 411global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ConnectionStart"), "Connection id \"{ConnectionId}\" started.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 420if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 427global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ConnectionStop"), "Connection id \"{ConnectionId}\" stopped.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 436if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 443global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ConnectionPause"), "Connection id \"{ConnectionId}\" paused.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 452if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 459global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ConnectionResume"), "Connection id \"{ConnectionId}\" resumed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 468if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 475global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ConnectionKeepAlive"), "Connection id \"{ConnectionId}\" completed keep alive response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 484if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 491global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "ConnectionDisconnect"), "Connection id \"{ConnectionId}\" disconnecting.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 500if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 507global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(16, "NotAllConnectionsClosedGracefully"), "Some connections failed to close gracefully during server shutdown.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 516if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 523global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "NotAllConnectionsAborted"), "Some connections failed to abort during server shutdown.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 532if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 539global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(24, "ConnectionRejected"), "Connection id \"{ConnectionId}\" rejected because the maximum number of concurrent connections has been reached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 548if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 555global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(34, "ApplicationAbortedConnection"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": the application aborted the connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 564if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 571global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(39, "ConnectionAccepted"), "Connection id \"{ConnectionId}\" accepted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 580if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 596global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(13, "ApplicationError"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": An unhandled exception was thrown by the application.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 605if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 612global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(18, "ConnectionHeadResponseBodyWrite"), "Connection id \"{ConnectionId}\" write of \"{count}\" body bytes to non-body HEAD response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 621if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 628global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(22, "HeartbeatSlow"), "As of \"{now}\", the heartbeat has been running for \"{heartbeatDuration}\" which is longer than \"{interval}\". This could be caused by thread pool starvation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 637if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 644global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Critical, new global::Microsoft.Extensions.Logging.EventId(23, "ApplicationNeverCompleted"), "Connection id \"{ConnectionId}\" application never completed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 653if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Critical)) 660global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(25, "RequestBodyStart"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": started reading request body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 673global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(26, "RequestBodyDone"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": done reading request body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 686global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(32, "RequestBodyNotEntirelyRead"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": the application completed without reading the entire request body.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 695if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 702global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(33, "RequestBodyDrainTimedOut"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": automatic draining of the request body timed out after taking over 5 seconds.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 711if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 718global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(41, "InvalidResponseHeaderRemoved"), "One or more of the following response headers have been removed because they are invalid for HTTP/2 and HTTP/3 responses: 'Connection', 'Transfer-Encoding', 'Keep-Alive', 'Upgrade' and 'Proxy-Connection'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 727if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 734global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(64, "Http2DisabledWithHttp1AndNoTls"), "HTTP/2 is not enabled for {Endpoint}. The endpoint is configured to use HTTP/1.1 and HTTP/2, but TLS is not enabled. HTTP/2 requires TLS application protocol negotiation. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 743if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 750global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(65, "Http3DisabledWithHttp1AndNoTls"), "HTTP/3 is not enabled for {Endpoint}. HTTP/3 requires TLS. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 759if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 766global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(66, "RequestAborted"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": The request was aborted by the client.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 775if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 782global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(67, "RequestBodyDrainBodyReaderInvalidState"), "Connection id \"{ConnectionId}\", Request id \"{TraceIdentifier}\": automatic draining of the request body failed because the body reader is in an invalid state.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 791if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 807global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(29, "Http2ConnectionError"), "Connection id \"{ConnectionId}\": HTTP/2 connection error.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 816if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 823global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(30, "Http2StreamError"), "Connection id \"{ConnectionId}\": HTTP/2 stream error.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 832if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 839global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(31, "HPackDecodingError"), "Connection id \"{ConnectionId}\": HPACK decoding error while decoding headers for stream ID {StreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 848if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 855global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2ErrorCode>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(35, "Http2StreamResetAbort"), "Trace id \"{TraceIdentifier}\": HTTP/2 stream error \"{error}\". A Reset is being sent to the stream.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 864if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 871global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(36, "Http2ConnectionClosing"), "Connection id \"{ConnectionId}\" is closing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 880if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 887global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameType, int, int, object>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(37, "Http2FrameReceived"), "Connection id \"{ConnectionId}\" received {type} frame for stream ID {id} with length {length} and flags {flags}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 900global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(38, "HPackEncodingError"), "Connection id \"{ConnectionId}\": HPACK encoding error while encoding headers for stream ID {StreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 909if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 916global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(40, "Http2MaxConcurrentStreamsReached"), "Connection id \"{ConnectionId}\" reached the maximum number of concurrent HTTP/2 streams allowed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 925if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 932global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(48, "Http2ConnectionClosed"), "Connection id \"{ConnectionId}\" is closed. The last processed stream ID was {HighestOpenedStreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 941if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 948global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameType, int, int, object>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(49, "Http2FrameSending"), "Connection id \"{ConnectionId}\" sending {type} frame for stream ID {id} with length {length} and flags {flags}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 961global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Critical, new global::Microsoft.Extensions.Logging.EventId(60, "Http2QueueOperationsExceeded"), "Connection id \"{ConnectionId}\" exceeded the output operations maximum queue size.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 970if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Critical)) 977global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, string>(global::Microsoft.Extensions.Logging.LogLevel.Critical, new global::Microsoft.Extensions.Logging.EventId(61, "Http2UnexpectedDataRemaining"), "Stream {StreamId} on connection id \"{ConnectionId}\" observed an unexpected state where the streams output ended with data still remaining in the pipe.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 986if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Critical)) 993global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(62, "Http2ConnectionQueueProcessingCompleted"), "The connection queue processing loop for {ConnectionId} completed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1002if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1009global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Critical, new global::Microsoft.Extensions.Logging.EventId(63, "Http2UnexpectedConnectionQueueError"), "The event loop in connection {ConnectionId} failed unexpectedly.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1018if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Critical)) 1025global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(64, "Http2TooManyEnhanceYourCalms"), "Connection id \"{ConnectionId}\" aborted since at least {Count} ENHANCE_YOUR_CALM responses were recorded per second.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1034if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1041global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(65, "Http2FlowControlQueueOperationsExceeded"), "Connection id \"{ConnectionId}\" exceeded the output flow control maximum queue size of {Count}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1050if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1116if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1119global::Microsoft.Extensions.Logging.LogLevel.Debug, 1137global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(42, "Http3ConnectionError"), "Connection id \"{ConnectionId}\": HTTP/3 connection error.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1146if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1153global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(43, "Http3ConnectionClosing"), "Connection id \"{ConnectionId}\" is closing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1162if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1169global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(44, "Http3ConnectionClosed"), "Connection id \"{ConnectionId}\" is closed. The last processed stream ID was {HighestOpenedStreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1178if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1185global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(45, "Http3StreamAbort"), "Trace id \"{TraceIdentifier}\": HTTP/3 stream error \"{error}\". An abort is being sent to the stream.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1198global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, long, long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(46, "Http3FrameReceived"), "Connection id \"{ConnectionId}\" received {type} frame for stream ID {id} with length {length}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1211global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, long, long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(47, "Http3FrameSending"), "Connection id \"{ConnectionId}\" sending {type} frame for stream ID {id} with length {length}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1224global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(50, "Http3OutboundControlStreamError"), "Connection id \"{ConnectionId}\": Unexpected error when initializing outbound control stream.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1233if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1240global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(51, "QPackDecodingError"), "Connection id \"{ConnectionId}\": QPACK decoding error while decoding headers for stream ID {StreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1249if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1256global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(52, "QPackEncodingError"), "Connection id \"{ConnectionId}\": QPACK encoding error while encoding headers for stream ID {StreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1265if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1272global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(53, "Http3GoAwayHighestOpenedStreamId"), "Connection id \"{ConnectionId}\": GOAWAY stream ID {GoAwayStreamId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1281if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1295global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "LocatedDevelopmentCertificate"), "Using development certificate: {certificateSubjectName} (Thumbprint: {certificateThumbprint})", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1304if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1311global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UnableToLocateDevelopmentCertificate"), "Unable to locate an appropriate development https certificate.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1320if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1327global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToLocateDevelopmentCertificateFile"), "Failed to locate the development https certificate at '{certificatePath}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1336if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1343global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "FailedToLoadDevelopmentCertificate"), "Failed to load the development https certificate at '{certificatePath}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1352if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1359global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(4, "BadDeveloperCertificateState"), "The ASP.NET Core developer certificate is in an invalid state. To fix this issue, run the following commands 'dotnet dev-certs https --clean' and 'dotnet dev-certs https' to remove all existing ASP.NET Core development certificates and create a new untrusted developer certificate. On macOS or Windows, use 'dotnet dev-certs https --trust' to trust the new certificate.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1368if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1375global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "DeveloperCertificateFirstRun"), "{Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1384if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1391global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(6, "MissingOrInvalidCertificateFile"), "The certificate file at '{CertificateFilePath}' can not be found, contains malformed data or does not contain a certificate.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1400if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1407global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(7, "MissingOrInvalidCertificateKeyFile"), "The certificate key file at '{CertificateKeyFilePath}' can not be found, contains malformed data or does not contain a PEM encoded key in PKCS8 format.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1416if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 1423global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "DeveloperCertificateNotTrusted"), "The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1432if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1439global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "DeveloperCertificatePartiallyTrusted"), "The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1448if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1461global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "AuthenticationFailed"), "Failed to authenticate HTTPS connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1470if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1477global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "AuthenticationTimedOut"), "Authentication of the HTTPS connection timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1486if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1493global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Security.Authentication.SslProtocols>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "HttpsConnectionEstablished"), "Connection {ConnectionId} established using the following protocol: {Protocol}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1502if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1509global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(4, "Http2DefaultCiphersInsufficient"), "HTTP/2 over TLS is not supported on Windows versions older than Windows 10 and Windows Server 2016 due to incompatible ciphers or missing ALPN support. Falling back to HTTP/1.1 instead.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1518if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 1525global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "LocateCertWithPrivateKey"), "Searching for certificate with private key and thumbprint {Thumbprint} in the certificate store.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1534if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1541global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "FoundCertWithPrivateKey"), "Found certificate with private key and thumbprint {Thumbprint} in certificate store {StoreName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1550if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1557global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "FailToLocateCertificate"), "Failure to locate certificate from store.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1566if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1573global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "FailToOpenStore"), "Failed to open certificate store {StoreName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1582if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 1589global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(9, "NoSubjectAlternativeName"), "Certificate with thumbprint {Thumbprint} lacks the subjectAlternativeName (SAN) extension and may not be accepted by browsers.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1598if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
AnyIPListenOptions.cs (2)
32if (context.Logger.IsEnabled(LogLevel.Trace)) 36if (context.Logger.IsEnabled(LogLevel.Debug))
Internal\AddressBinder.cs (3)
181if (context.Logger.IsEnabled(LogLevel.Debug)) 198if (context.Logger.IsEnabled(LogLevel.Information)) 219if (context.Logger.IsEnabled(LogLevel.Warning))
Internal\CertificatePathWatcherLoggerExtensions.cs (16)
10[LoggerMessage(1, LogLevel.Warning, "Directory '{Directory}' does not exist so changes to the certificate '{Path}' will not be tracked.", EventName = "DirectoryDoesNotExist")] 13[LoggerMessage(2, LogLevel.Warning, "Attempted to remove watch from unwatched path '{Path}'.", EventName = "UnknownFile")] 16[LoggerMessage(3, LogLevel.Warning, "Attempted to remove unknown observer from path '{Path}'.", EventName = "UnknownObserver")] 19[LoggerMessage(4, LogLevel.Debug, "Created directory watcher for '{Directory}'.", EventName = "CreatedDirectoryWatcher")] 22[LoggerMessage(5, LogLevel.Debug, "Created file watcher for '{Path}'.", EventName = "CreatedFileWatcher")] 25[LoggerMessage(6, LogLevel.Debug, "Removed directory watcher for '{Directory}'.", EventName = "RemovedDirectoryWatcher")] 28[LoggerMessage(7, LogLevel.Debug, "Removed file watcher for '{Path}'.", EventName = "RemovedFileWatcher")] 31[LoggerMessage(8, LogLevel.Debug, "Error retrieving last modified time for '{Path}'.", EventName = "LastModifiedTimeError")] 34[LoggerMessage(9, LogLevel.Debug, "Ignored event for presently untracked file '{Path}'.", EventName = "UntrackedFileEvent")] 37[LoggerMessage(10, LogLevel.Trace, "Reused existing observer on file watcher for '{Path}'.", EventName = "ReusedObserver")] 40[LoggerMessage(11, LogLevel.Trace, "Added observer to file watcher for '{Path}'.", EventName = "AddedObserver")] 43[LoggerMessage(12, LogLevel.Trace, "Removed observer from file watcher for '{Path}'.", EventName = "RemovedObserver")] 46[LoggerMessage(13, LogLevel.Trace, "File '{Path}' now has {Count} observers.", EventName = "ObserverCount")] 49[LoggerMessage(14, LogLevel.Trace, "Directory '{Directory}' now has watchers on {Count} files.", EventName = "FileCount")] 52[LoggerMessage(15, LogLevel.Trace, "Flagged {Count} observers of '{Path}' as changed.", EventName = "FlaggedObservers")] 55[LoggerMessage(16, LogLevel.Trace, "Ignored event since '{Path}' was unavailable.", EventName = "EventWithoutFile")]
Internal\Http\Http1Connection.cs (1)
78_showErrorDetails = Log.IsEnabled(LogLevel.Information);
Internal\Http\HttpProtocol.cs (1)
1424Log.IsEnabled(LogLevel.Information)
Internal\Http\MessageBody.cs (2)
133if (Log.IsEnabled(LogLevel.Debug)) 161if (Log.IsEnabled(LogLevel.Debug))
Internal\Infrastructure\KestrelConnection.cs (1)
174if (Logger.IsEnabled(LogLevel.Critical))
Internal\Infrastructure\KestrelTrace.BadRequests.cs (6)
33if (_generalLogger.IsEnabled(LogLevel.Debug)) 41[LoggerMessage(17, LogLevel.Debug, @"Connection id ""{ConnectionId}"" bad request data: ""{message}""", EventName = "ConnectionBadRequest")] 44[LoggerMessage(20, LogLevel.Debug, @"Connection id ""{ConnectionId}"" request processing ended abnormally.", EventName = "RequestProcessingError")] 47[LoggerMessage(27, LogLevel.Debug, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the request timed out because it was not sent by the client at a minimum of {Rate} bytes/second.", EventName = "RequestBodyMinimumDataRateNotSatisfied")] 50[LoggerMessage(28, LogLevel.Debug, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the connection was closed because the response was not read by the client at the specified minimum data rate.", EventName = "ResponseMinimumDataRateNotSatisfied")] 53[LoggerMessage(54, LogLevel.Debug, @"Connection id ""{ConnectionId}"": Invalid content received on connection. Possible incorrect HTTP version detected. Expected {ExpectedHttpVersion} but received {DetectedHttpVersion}.", EventName = "PossibleInvalidHttpVersionDetected", SkipEnabledCheck = true)]
Internal\Infrastructure\KestrelTrace.Connections.cs (11)
67[LoggerMessage(1, LogLevel.Debug, @"Connection id ""{ConnectionId}"" started.", EventName = "ConnectionStart")] 70[LoggerMessage(2, LogLevel.Debug, @"Connection id ""{ConnectionId}"" stopped.", EventName = "ConnectionStop")] 73[LoggerMessage(4, LogLevel.Debug, @"Connection id ""{ConnectionId}"" paused.", EventName = "ConnectionPause")] 76[LoggerMessage(5, LogLevel.Debug, @"Connection id ""{ConnectionId}"" resumed.", EventName = "ConnectionResume")] 79[LoggerMessage(9, LogLevel.Debug, @"Connection id ""{ConnectionId}"" completed keep alive response.", EventName = "ConnectionKeepAlive")] 82[LoggerMessage(10, LogLevel.Debug, @"Connection id ""{ConnectionId}"" disconnecting.", EventName = "ConnectionDisconnect")] 85[LoggerMessage(16, LogLevel.Debug, "Some connections failed to close gracefully during server shutdown.", EventName = "NotAllConnectionsClosedGracefully")] 88[LoggerMessage(21, LogLevel.Debug, "Some connections failed to abort during server shutdown.", EventName = "NotAllConnectionsAborted")] 91[LoggerMessage(24, LogLevel.Warning, @"Connection id ""{ConnectionId}"" rejected because the maximum number of concurrent connections has been reached.", EventName = "ConnectionRejected")] 94[LoggerMessage(34, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application aborted the connection.", EventName = "ApplicationAbortedConnection")] 97[LoggerMessage(39, LogLevel.Debug, @"Connection id ""{ConnectionId}"" accepted.", EventName = "ConnectionAccepted")]
Internal\Infrastructure\KestrelTrace.cs (2)
25public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 28public bool IsEnabled(LogLevel logLevel) => _generalLogger.IsEnabled(logLevel);
Internal\Infrastructure\KestrelTrace.General.cs (13)
79[LoggerMessage(13, LogLevel.Error, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": An unhandled exception was thrown by the application.", EventName = "ApplicationError")] 82[LoggerMessage(18, LogLevel.Debug, @"Connection id ""{ConnectionId}"" write of ""{count}"" body bytes to non-body HEAD response.", EventName = "ConnectionHeadResponseBodyWrite")] 85[LoggerMessage(22, LogLevel.Warning, @"As of ""{now}"", the heartbeat has been running for ""{heartbeatDuration}"" which is longer than ""{interval}"". This could be caused by thread pool starvation.", EventName = "HeartbeatSlow")] 88[LoggerMessage(23, LogLevel.Critical, @"Connection id ""{ConnectionId}"" application never completed.", EventName = "ApplicationNeverCompleted")] 91[LoggerMessage(25, LogLevel.Debug, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": started reading request body.", EventName = "RequestBodyStart", SkipEnabledCheck = true)] 94[LoggerMessage(26, LogLevel.Debug, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": done reading request body.", EventName = "RequestBodyDone", SkipEnabledCheck = true)] 97[LoggerMessage(32, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application completed without reading the entire request body.", EventName = "RequestBodyNotEntirelyRead")] 100[LoggerMessage(33, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": automatic draining of the request body timed out after taking over 5 seconds.", EventName = "RequestBodyDrainTimedOut")] 103[LoggerMessage(41, LogLevel.Warning, "One or more of the following response headers have been removed because they are invalid for HTTP/2 and HTTP/3 responses: 'Connection', 'Transfer-Encoding', 'Keep-Alive', 'Upgrade' and 'Proxy-Connection'.", EventName = "InvalidResponseHeaderRemoved")] 106[LoggerMessage(64, LogLevel.Warning, "HTTP/2 is not enabled for {Endpoint}. The endpoint is configured to use HTTP/1.1 and HTTP/2, but TLS is not enabled. HTTP/2 requires TLS application protocol negotiation. Connections to this endpoint will use HTTP/1.1.", EventName = "Http2DisabledWithHttp1AndNoTls")] 109[LoggerMessage(65, LogLevel.Warning, "HTTP/3 is not enabled for {Endpoint}. HTTP/3 requires TLS. Connections to this endpoint will use HTTP/1.1.", EventName = "Http3DisabledWithHttp1AndNoTls")] 112[LoggerMessage(66, LogLevel.Debug, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": The request was aborted by the client.", EventName = "RequestAborted")] 115[LoggerMessage(67, LogLevel.Error, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": automatic draining of the request body failed because the body reader is in an invalid state.", EventName = "RequestBodyDrainBodyReaderInvalidState")]
Internal\Infrastructure\KestrelTrace.Http2.cs (19)
39if (_http2Logger.IsEnabled(LogLevel.Trace)) 62if (_http2Logger.IsEnabled(LogLevel.Trace)) 105[LoggerMessage(29, LogLevel.Debug, @"Connection id ""{ConnectionId}"": HTTP/2 connection error.", EventName = "Http2ConnectionError")] 108[LoggerMessage(30, LogLevel.Debug, @"Connection id ""{ConnectionId}"": HTTP/2 stream error.", EventName = "Http2StreamError")] 111[LoggerMessage(31, LogLevel.Debug, @"Connection id ""{ConnectionId}"": HPACK decoding error while decoding headers for stream ID {StreamId}.", EventName = "HPackDecodingError")] 114[LoggerMessage(35, LogLevel.Debug, @"Trace id ""{TraceIdentifier}"": HTTP/2 stream error ""{error}"". A Reset is being sent to the stream.", EventName = "Http2StreamResetAbort")] 117[LoggerMessage(36, LogLevel.Debug, @"Connection id ""{ConnectionId}"" is closing.", EventName = "Http2ConnectionClosing")] 120[LoggerMessage(37, LogLevel.Trace, @"Connection id ""{ConnectionId}"" received {type} frame for stream ID {id} with length {length} and flags {flags}.", EventName = "Http2FrameReceived", SkipEnabledCheck = true)] 123[LoggerMessage(38, LogLevel.Information, @"Connection id ""{ConnectionId}"": HPACK encoding error while encoding headers for stream ID {StreamId}.", EventName = "HPackEncodingError")] 126[LoggerMessage(40, LogLevel.Debug, @"Connection id ""{ConnectionId}"" reached the maximum number of concurrent HTTP/2 streams allowed.", EventName = "Http2MaxConcurrentStreamsReached")] 129[LoggerMessage(48, LogLevel.Debug, @"Connection id ""{ConnectionId}"" is closed. The last processed stream ID was {HighestOpenedStreamId}.", EventName = "Http2ConnectionClosed")] 132[LoggerMessage(49, LogLevel.Trace, @"Connection id ""{ConnectionId}"" sending {type} frame for stream ID {id} with length {length} and flags {flags}.", EventName = "Http2FrameSending", SkipEnabledCheck = true)] 135[LoggerMessage(60, LogLevel.Critical, @"Connection id ""{ConnectionId}"" exceeded the output operations maximum queue size.", EventName = "Http2QueueOperationsExceeded")] 138[LoggerMessage(61, LogLevel.Critical, @"Stream {StreamId} on connection id ""{ConnectionId}"" observed an unexpected state where the streams output ended with data still remaining in the pipe.", EventName = "Http2UnexpectedDataRemaining")] 141[LoggerMessage(62, LogLevel.Debug, @"The connection queue processing loop for {ConnectionId} completed.", EventName = "Http2ConnectionQueueProcessingCompleted")] 144[LoggerMessage(63, LogLevel.Critical, @"The event loop in connection {ConnectionId} failed unexpectedly.", EventName = "Http2UnexpectedConnectionQueueError")] 149[LoggerMessage(64, LogLevel.Debug, @"Connection id ""{ConnectionId}"" aborted since at least {Count} ENHANCE_YOUR_CALM responses were recorded per second.", EventName = "Http2TooManyEnhanceYourCalms")] 152[LoggerMessage(65, LogLevel.Debug, @"Connection id ""{ConnectionId}"" exceeded the output flow control maximum queue size of {Count}.", EventName = "Http2FlowControlQueueOperationsExceeded")] 155[LoggerMessage(66, LogLevel.Debug, @"Connection id ""{ConnectionId}"" configured maximum flow control queue size {Actual} is less than the maximum streams per connection {Expected}. Increasing configured value to {Expected}.", EventName = "Http2FlowControlQueueMaximumTooLow")]
Internal\Infrastructure\KestrelTrace.Http3.cs (13)
30if (_http3Logger.IsEnabled(LogLevel.Debug)) 38if (_http3Logger.IsEnabled(LogLevel.Trace)) 46if (_http3Logger.IsEnabled(LogLevel.Trace)) 74[LoggerMessage(42, LogLevel.Debug, @"Connection id ""{ConnectionId}"": HTTP/3 connection error.", EventName = "Http3ConnectionError")] 77[LoggerMessage(43, LogLevel.Debug, @"Connection id ""{ConnectionId}"" is closing.", EventName = "Http3ConnectionClosing")] 80[LoggerMessage(44, LogLevel.Debug, @"Connection id ""{ConnectionId}"" is closed. The last processed stream ID was {HighestOpenedStreamId}.", EventName = "Http3ConnectionClosed")] 83[LoggerMessage(45, LogLevel.Debug, @"Trace id ""{TraceIdentifier}"": HTTP/3 stream error ""{error}"". An abort is being sent to the stream.", EventName = "Http3StreamAbort", SkipEnabledCheck = true)] 86[LoggerMessage(46, LogLevel.Trace, @"Connection id ""{ConnectionId}"" received {type} frame for stream ID {id} with length {length}.", EventName = "Http3FrameReceived", SkipEnabledCheck = true)] 89[LoggerMessage(47, LogLevel.Trace, @"Connection id ""{ConnectionId}"" sending {type} frame for stream ID {id} with length {length}.", EventName = "Http3FrameSending", SkipEnabledCheck = true)] 92[LoggerMessage(50, LogLevel.Debug, @"Connection id ""{ConnectionId}"": Unexpected error when initializing outbound control stream.", EventName = "Http3OutboundControlStreamError")] 95[LoggerMessage(51, LogLevel.Debug, @"Connection id ""{ConnectionId}"": QPACK decoding error while decoding headers for stream ID {StreamId}.", EventName = "QPackDecodingError")] 98[LoggerMessage(52, LogLevel.Information, @"Connection id ""{ConnectionId}"": QPACK encoding error while encoding headers for stream ID {StreamId}.", EventName = "QPackEncodingError")] 101[LoggerMessage(53, LogLevel.Debug, @"Connection id ""{ConnectionId}"": GOAWAY stream ID {GoAwayStreamId}.", EventName = "Http3GoAwayHighestOpenedStreamId")]
Internal\KestrelServerImpl.cs (4)
102HttpParser = new HttpParser<Http1ParsingHandler>(trace.IsEnabled(LogLevel.Information), serverOptions.DisableHttp1LineFeedTerminators), 355if (Trace.IsEnabled(LogLevel.Information)) 383if (Trace.IsEnabled(LogLevel.Information)) 396if (Trace.IsEnabled(LogLevel.Critical))
Internal\LoggerExtensions.cs (10)
15[LoggerMessage(0, LogLevel.Debug, "Using development certificate: {certificateSubjectName} (Thumbprint: {certificateThumbprint})", EventName = "LocatedDevelopmentCertificate")] 20[LoggerMessage(1, LogLevel.Debug, "Unable to locate an appropriate development https certificate.", EventName = "UnableToLocateDevelopmentCertificate")] 23[LoggerMessage(2, LogLevel.Debug, "Failed to locate the development https certificate at '{certificatePath}'.", EventName = "FailedToLocateDevelopmentCertificateFile")] 26[LoggerMessage(3, LogLevel.Debug, "Failed to load the development https certificate at '{certificatePath}'.", EventName = "FailedToLoadDevelopmentCertificate")] 29[LoggerMessage(4, LogLevel.Error, BadDeveloperCertificateStateMessage, EventName = "BadDeveloperCertificateState")] 32[LoggerMessage(5, LogLevel.Warning, "{Message}", EventName = "DeveloperCertificateFirstRun")] 35[LoggerMessage(6, LogLevel.Error, "The certificate file at '{CertificateFilePath}' can not be found, contains malformed data or does not contain a certificate.", EventName = "MissingOrInvalidCertificateFile")] 38[LoggerMessage(7, LogLevel.Error, "The certificate key file at '{CertificateKeyFilePath}' can not be found, contains malformed data or does not contain a PEM encoded key in PKCS8 format.", EventName = "MissingOrInvalidCertificateKeyFile")] 41[LoggerMessage(8, LogLevel.Warning, "The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", EventName = "DeveloperCertificateNotTrusted")] 44[LoggerMessage(9, LogLevel.Warning, "The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", EventName = "DeveloperCertificatePartiallyTrusted")]
LocalhostListenOptions.cs (2)
49if (context.Logger.IsEnabled(LogLevel.Information)) 63if (context.Logger.IsEnabled(LogLevel.Information))
Middleware\HttpsConnectionMiddleware.cs (9)
613[LoggerMessage(1, LogLevel.Debug, "Failed to authenticate HTTPS connection.", EventName = "AuthenticationFailed")] 616[LoggerMessage(2, LogLevel.Debug, "Authentication of the HTTPS connection timed out.", EventName = "AuthenticationTimedOut")] 619[LoggerMessage(3, LogLevel.Debug, "Connection {ConnectionId} established using the following protocol: {Protocol}", EventName = "HttpsConnectionEstablished")] 622[LoggerMessage(4, LogLevel.Information, "HTTP/2 over TLS is not supported on Windows versions older than Windows 10 and Windows Server 2016 due to incompatible ciphers or missing ALPN support. Falling back to HTTP/1.1 instead.", 626[LoggerMessage(5, LogLevel.Debug, "Searching for certificate with private key and thumbprint {Thumbprint} in the certificate store.", EventName = "LocateCertWithPrivateKey")] 631[LoggerMessage(6, LogLevel.Debug, "Found certificate with private key and thumbprint {Thumbprint} in certificate store {StoreName}.", EventName = "FoundCertWithPrivateKey")] 640[LoggerMessage(7, LogLevel.Debug, "Failure to locate certificate from store.", EventName = "FailToLocateCertificate")] 643[LoggerMessage(8, LogLevel.Debug, "Failed to open certificate store {StoreName}.", EventName = "FailToOpenStore")] 646[LoggerMessage(9, LogLevel.Information, "Certificate with thumbprint {Thumbprint} lacks the subjectAlternativeName (SAN) extension and may not be accepted by browsers.", EventName = "NoSubjectAlternativeName")]
Middleware\Internal\LoggingStream.cs (1)
152if (!_logger.IsEnabled(LogLevel.Debug))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (72)
_generated\0\LoggerMessage.g.cs (29)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "AcceptedConnection"), "Connection id \"{ConnectionId}\" accepted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 23global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal.QuicLog.StreamType>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "AcceptedStream"), "Stream id \"{ConnectionId}\" type {StreamType} accepted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 36global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal.QuicLog.StreamType>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "ConnectedStream"), "Stream id \"{ConnectionId}\" type {StreamType} connected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 49global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ConnectionError"), "Connection id \"{ConnectionId}\" unexpected error.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 62global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ConnectionAborted"), "Connection id \"{ConnectionId}\" aborted by peer with error code {ErrorCode}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 75global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ConnectionAbort"), "Connection id \"{ConnectionId}\" aborted by application with error code {ErrorCode} because: \"{Reason}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 88global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(7, "StreamError"), "Stream id \"{ConnectionId}\" unexpected error.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "StreamPause"), "Stream id \"{ConnectionId}\" paused.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 114global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "StreamResume"), "Stream id \"{ConnectionId}\" resumed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 127global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "StreamShutdownWrite"), "Stream id \"{ConnectionId}\" shutting down writes because: \"{Reason}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 140global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "StreamAbortedRead"), "Stream id \"{ConnectionId}\" read aborted by peer with error code {ErrorCode}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 153global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "StreamAbortedWrite"), "Stream id \"{ConnectionId}\" write aborted by peer with error code {ErrorCode}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 166global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "StreamAbort"), "Stream id \"{ConnectionId}\" aborted by application with error code {ErrorCode} because: \"{Reason}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "StreamAbortRead"), "Stream id \"{ConnectionId}\" read side aborted by application with error code {ErrorCode} because: \"{Reason}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 192global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, long, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "StreamAbortWrite"), "Stream id \"{ConnectionId}\" write side aborted by application with error code {ErrorCode} because: \"{Reason}\".", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 205global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(16, "StreamPooled"), "Stream id \"{ConnectionId}\" pooled for reuse.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(17, "StreamReused"), "Stream id \"{ConnectionId}\" reused from pool.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 231global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(18, "ConnectionListenerCertificateNotSpecified"), "SslServerAuthenticationOptions must provide a server certificate using ServerCertificate, ServerCertificateContext, or ServerCertificateSelectionCallback.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 240if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 247global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(19, "ConnectionListenerApplicationProtocolsNotSpecified"), "SslServerAuthenticationOptions must provide at least one application protocol using ApplicationProtocols.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 256if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 263global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.IPEndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(20, "ConnectionListenerStarting"), "QUIC listener starting with configured endpoint {listenEndPoint}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 272if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 279global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "ConnectionListenerAborted"), "QUIC listener aborted.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 288if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 295global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(22, "StreamTimeoutRead"), "Stream id \"{ConnectionId}\" read timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 308global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "StreamTimeoutWrite"), "Stream id \"{ConnectionId}\" write timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 321global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(24, "ConnectionListenerAcceptConnectionFailed"), "QUIC listener connection failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 330if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
Internal\QuicLog.cs (43)
13[LoggerMessage(1, LogLevel.Debug, @"Connection id ""{ConnectionId}"" accepted.", EventName = "AcceptedConnection", SkipEnabledCheck = true)] 18if (logger.IsEnabled(LogLevel.Debug)) 24[LoggerMessage(2, LogLevel.Debug, @"Stream id ""{ConnectionId}"" type {StreamType} accepted.", EventName = "AcceptedStream", SkipEnabledCheck = true)] 29if (logger.IsEnabled(LogLevel.Debug)) 35[LoggerMessage(3, LogLevel.Debug, @"Stream id ""{ConnectionId}"" type {StreamType} connected.", EventName = "ConnectedStream", SkipEnabledCheck = true)] 40if (logger.IsEnabled(LogLevel.Debug)) 46[LoggerMessage(4, LogLevel.Debug, @"Connection id ""{ConnectionId}"" unexpected error.", EventName = "ConnectionError", SkipEnabledCheck = true)] 51if (logger.IsEnabled(LogLevel.Debug)) 57[LoggerMessage(5, LogLevel.Debug, @"Connection id ""{ConnectionId}"" aborted by peer with error code {ErrorCode}.", EventName = "ConnectionAborted", SkipEnabledCheck = true)] 62if (logger.IsEnabled(LogLevel.Debug)) 68[LoggerMessage(6, LogLevel.Debug, @"Connection id ""{ConnectionId}"" aborted by application with error code {ErrorCode} because: ""{Reason}"".", EventName = "ConnectionAbort", SkipEnabledCheck = true)] 73if (logger.IsEnabled(LogLevel.Debug)) 79[LoggerMessage(7, LogLevel.Debug, @"Stream id ""{ConnectionId}"" unexpected error.", EventName = "StreamError", SkipEnabledCheck = true)] 84if (logger.IsEnabled(LogLevel.Debug)) 90[LoggerMessage(8, LogLevel.Debug, @"Stream id ""{ConnectionId}"" paused.", EventName = "StreamPause", SkipEnabledCheck = true)] 95if (logger.IsEnabled(LogLevel.Debug)) 101[LoggerMessage(9, LogLevel.Debug, @"Stream id ""{ConnectionId}"" resumed.", EventName = "StreamResume", SkipEnabledCheck = true)] 106if (logger.IsEnabled(LogLevel.Debug)) 112[LoggerMessage(10, LogLevel.Debug, @"Stream id ""{ConnectionId}"" shutting down writes because: ""{Reason}"".", EventName = "StreamShutdownWrite", SkipEnabledCheck = true)] 117if (logger.IsEnabled(LogLevel.Debug)) 123[LoggerMessage(11, LogLevel.Debug, @"Stream id ""{ConnectionId}"" read aborted by peer with error code {ErrorCode}.", EventName = "StreamAbortedRead", SkipEnabledCheck = true)] 128if (logger.IsEnabled(LogLevel.Debug)) 134[LoggerMessage(12, LogLevel.Debug, @"Stream id ""{ConnectionId}"" write aborted by peer with error code {ErrorCode}.", EventName = "StreamAbortedWrite", SkipEnabledCheck = true)] 139if (logger.IsEnabled(LogLevel.Debug)) 145[LoggerMessage(13, LogLevel.Debug, @"Stream id ""{ConnectionId}"" aborted by application with error code {ErrorCode} because: ""{Reason}"".", EventName = "StreamAbort", SkipEnabledCheck = true)] 150if (logger.IsEnabled(LogLevel.Debug)) 156[LoggerMessage(14, LogLevel.Debug, @"Stream id ""{ConnectionId}"" read side aborted by application with error code {ErrorCode} because: ""{Reason}"".", EventName = "StreamAbortRead", SkipEnabledCheck = true)] 161if (logger.IsEnabled(LogLevel.Debug)) 167[LoggerMessage(15, LogLevel.Debug, @"Stream id ""{ConnectionId}"" write side aborted by application with error code {ErrorCode} because: ""{Reason}"".", EventName = "StreamAbortWrite", SkipEnabledCheck = true)] 172if (logger.IsEnabled(LogLevel.Debug)) 178[LoggerMessage(16, LogLevel.Trace, @"Stream id ""{ConnectionId}"" pooled for reuse.", EventName = "StreamPooled", SkipEnabledCheck = true)] 183if (logger.IsEnabled(LogLevel.Trace)) 189[LoggerMessage(17, LogLevel.Trace, @"Stream id ""{ConnectionId}"" reused from pool.", EventName = "StreamReused", SkipEnabledCheck = true)] 194if (logger.IsEnabled(LogLevel.Trace)) 200[LoggerMessage(18, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide a server certificate using {nameof(SslServerAuthenticationOptions.ServerCertificate)}," + 204[LoggerMessage(19, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide at least one application protocol using {nameof(SslServerAuthenticationOptions.ApplicationProtocols)}.", EventName = "ConnectionListenerApplicationProtocolsNotSpecified")] 207[LoggerMessage(20, LogLevel.Debug, "QUIC listener starting with configured endpoint {listenEndPoint}.", EventName = "ConnectionListenerStarting")] 210[LoggerMessage(21, LogLevel.Debug, "QUIC listener aborted.", EventName = "ConnectionListenerAborted")] 213[LoggerMessage(22, LogLevel.Debug, @"Stream id ""{ConnectionId}"" read timed out.", EventName = "StreamTimeoutRead", SkipEnabledCheck = true)] 218if (logger.IsEnabled(LogLevel.Debug)) 224[LoggerMessage(23, LogLevel.Debug, @"Stream id ""{ConnectionId}"" write timed out.", EventName = "StreamTimeoutWrite", SkipEnabledCheck = true)] 229if (logger.IsEnabled(LogLevel.Debug)) 235[LoggerMessage(24, LogLevel.Debug, "QUIC listener connection failed.", EventName = "ConnectionListenerAcceptConnectionFailed")]
Microsoft.AspNetCore.Session (38)
_generated\0\LoggerMessage.g.cs (23)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(1, "ErrorClosingTheSession"), "Error closing the session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "AccessingExpiredSession"), "Accessing expired session, Key:{sessionKey}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(3, "SessionStarted"), "Session started; Key:{sessionKey}, Id:{sessionId}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 55global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "SessionLoaded"), "Session loaded; Key:{sessionKey}, Id:{sessionId}, Count:{count}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 68global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "SessionStored"), "Session stored; Key:{sessionKey}, Id:{sessionId}, Count:{count}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 77if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 84global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(6, "SessionCacheReadException"), "Session cache read exception, Key:{sessionKey}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 97global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(7, "ErrorUnprotectingCookie"), "Error unprotecting the session cookie.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 106if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 113global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "SessionLoadingTimeout"), "Loading the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 122if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 129global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "SessionCommitTimeout"), "Committing the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 138if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 145global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "SessionCommitCanceled"), "Committing the session was canceled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 154if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 161global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(11, "SessionRefreshTimeout"), "Refreshing the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 170if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 177global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(12, "SessionRefreshCanceled"), "Refreshing the session was canceled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 186if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 193global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(13, "SessionCommitNotAvailable"), "Session cannot be committed since it is unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 202if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information))
DistributedSession.cs (2)
251if (_logger.IsEnabled(LogLevel.Information)) 353if (_logger.IsEnabled(LogLevel.Debug))
LoggingExtensions.cs (13)
8[LoggerMessage(1, LogLevel.Error, "Error closing the session.", EventName = "ErrorClosingTheSession")] 11[LoggerMessage(2, LogLevel.Information, "Accessing expired session, Key:{sessionKey}", EventName = "AccessingExpiredSession")] 14[LoggerMessage(3, LogLevel.Information, "Session started; Key:{sessionKey}, Id:{sessionId}", EventName = "SessionStarted", SkipEnabledCheck = true)] 17[LoggerMessage(4, LogLevel.Debug, "Session loaded; Key:{sessionKey}, Id:{sessionId}, Count:{count}", EventName = "SessionLoaded", SkipEnabledCheck = true)] 20[LoggerMessage(5, LogLevel.Debug, "Session stored; Key:{sessionKey}, Id:{sessionId}, Count:{count}", EventName = "SessionStored")] 23[LoggerMessage(6, LogLevel.Error, "Session cache read exception, Key:{sessionKey}", EventName = "SessionCacheReadException", SkipEnabledCheck = true)] 26[LoggerMessage(7, LogLevel.Warning, "Error unprotecting the session cookie.", EventName = "ErrorUnprotectingCookie")] 29[LoggerMessage(8, LogLevel.Warning, "Loading the session timed out.", EventName = "SessionLoadingTimeout")] 32[LoggerMessage(9, LogLevel.Warning, "Committing the session timed out.", EventName = "SessionCommitTimeout")] 35[LoggerMessage(10, LogLevel.Information, "Committing the session was canceled.", EventName = "SessionCommitCanceled")] 38[LoggerMessage(11, LogLevel.Warning, "Refreshing the session timed out.", EventName = "SessionRefreshTimeout")] 41[LoggerMessage(12, LogLevel.Information, "Refreshing the session was canceled.", EventName = "SessionRefreshCanceled")] 44[LoggerMessage(13, LogLevel.Information, "Session cannot be committed since it is unavailable.", EventName = "SessionCommitNotAvailable")]
Microsoft.AspNetCore.SignalR.Core (136)
_generated\0\LoggerMessage.g.cs (88)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "HandshakeComplete"), "Completed connection handshake. Using HubProtocol '{Protocol}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "HandshakeCanceled"), "Handshake was canceled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "SentPing"), "Sent a ping message to the client.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "TransportBufferFull"), "Unable to send Ping message to client, the transport buffer is full.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "HandshakeFailed"), "Failed connection handshake.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(6, "FailedWritingMessage"), "Failed writing message. Aborting connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 166global::Microsoft.Extensions.Logging.LogLevel.Debug, 175global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(8, "AbortFailed"), "Abort callback failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 184if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 191global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "ClientTimeout"), "Client timeout ({ClientTimeout}ms) elapsed without receiving a message from the client. Closing connection.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 200if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 207global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "HandshakeSizeLimitExceeded"), "The maximum message size of {MaxMessageSize}B was exceeded while parsing the Handshake. The message size can be configured in AddHubOptions.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 216if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 223global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, int>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "DisablingReconnect"), "HubProtocol '{Protocol} v{Version}' does not support Stateful Reconnect. Disabling the feature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 232if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 246global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(1, "ErrorDispatchingHubEvent"), "Error when dispatching '{HubMethod}' on hub.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 255if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 262global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ErrorProcessingRequest"), "Error when processing requests.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 271if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 278global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(3, "AbortFailed"), "Abort callback failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 287if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 294global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "ErrorSendingClose"), "Error when sending Close message.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 303if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 310global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "ConnectedStarting"), "OnConnectedAsync started.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 319if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 326global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ConnectedEnding"), "OnConnectedAsync ending.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 335if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 348global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Protocol.InvocationMessage>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "ReceivedHubInvocation"), "Received hub invocation: {InvocationMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 357if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 364global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "UnsupportedMessageReceived"), "Received unsupported message of type '{MessageType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 373if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 380global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "UnknownHubMethod"), "Unknown hub method '{HubMethod}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 389if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 396global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "HubMethodNotAuthorized"), "Failed to invoke '{HubMethod}' because user is unauthorized.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 405if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 412global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(6, "StreamingResult"), "InvocationId {InvocationId}: Streaming result of type '{ResultType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 425global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(7, "SendingResult"), "InvocationId {InvocationId}: Sending result of type '{ResultType}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 438global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(8, "FailedInvokingHubMethod"), "Failed to invoke hub method '{HubMethod}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 447if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 454global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(9, "HubMethodBound"), "'{HubName}' hub method '{HubMethod}' is bound.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 463if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 470global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(10, "CancelStream"), "Canceling stream for invocation {InvocationId}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 479if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 486global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "UnexpectedCancel"), "CancelInvocationMessage received unexpectedly.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 495if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 502global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Protocol.StreamInvocationMessage>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(12, "ReceivedStreamHubInvocation"), "Received stream hub invocation: {InvocationMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 511if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 518global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(13, "StreamingMethodCalledWithInvoke"), "A streaming method was invoked with a non-streaming invocation : {InvocationMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 527if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 534global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "NonStreamingMethodCalledWithStream"), "A non-streaming method was invoked with a streaming invocation : {InvocationMessage}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 543if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 550global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "InvalidReturnValueFromStreamingMethod"), "A streaming method returned a value that cannot be used to build enumerator {HubMethod}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 559if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 566global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(16, "ReceivedStreamItem"), "Received item for stream '{StreamId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 575if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 582global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(17, "StartingParameterStream"), "Creating streaming parameter channel '{StreamId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 591if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 598global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(18, "CompletingStream"), "Stream '{StreamId}' has been completed by client.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 607if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 614global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(19, "ClosingStreamWithBindingError"), "Stream '{StreamId}' closed with error '{Error}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 623if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 630global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(21, "UnexpectedStreamItem"), "StreamItemMessage received unexpectedly.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 639if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 646global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(22, "InvalidHubParameters"), "Parameters to hub method '{HubMethod}' are incorrect.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 655if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 662global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(23, "InvocationIdInUse"), "Invocation ID '{InvocationId}' is already in use.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 671if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 678global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(24, "UnexpectedCompletion"), "CompletionMessage for invocation ID '{InvocationId}' received unexpectedly.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 687if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 694global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(25, "FailedStreaming"), "Invocation ID {InvocationId}: Failed while sending stream items from hub method {HubMethod}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 703if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 710global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(26, "DroppingMessage"), "Dropping {MessageType} with ID '{InvocationId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 719if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 726global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(27, "ReceivedAckMessage"), "Received AckMessage with Sequence ID '{SequenceId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 735if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 742global::Microsoft.Extensions.Logging.LoggerMessage.Define<long>(global::Microsoft.Extensions.Logging.LogLevel.Trace, new global::Microsoft.Extensions.Logging.EventId(28, "ReceivedSequenceMessage"), "Received SequenceMessage with Sequence ID '{SequenceId}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 751if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Trace)) 766global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "RegisteredSignalRProtocol"), "Registered SignalR Protocol: {ProtocolName}, implemented by {ImplementationType}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 775if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 782global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "FoundImplementationForProtocol"), "Found protocol implementation for requested protocol: {ProtocolName}.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 791if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
HubConnectionContext.Log.cs (11)
12[LoggerMessage(1, LogLevel.Debug, "Completed connection handshake. Using HubProtocol '{Protocol}'.", EventName = "HandshakeComplete")] 15[LoggerMessage(2, LogLevel.Debug, "Handshake was canceled.", EventName = "HandshakeCanceled")] 18[LoggerMessage(3, LogLevel.Trace, "Sent a ping message to the client.", EventName = "SentPing")] 21[LoggerMessage(4, LogLevel.Debug, "Unable to send Ping message to client, the transport buffer is full.", EventName = "TransportBufferFull")] 24[LoggerMessage(5, LogLevel.Debug, "Failed connection handshake.", EventName = "HandshakeFailed")] 27[LoggerMessage(6, LogLevel.Error, "Failed writing message. Aborting connection.", EventName = "FailedWritingMessage")] 30[LoggerMessage(7, LogLevel.Debug, "Server does not support version {Version} of the {Protocol} protocol.", EventName = "ProtocolVersionFailed")] 33[LoggerMessage(8, LogLevel.Trace, "Abort callback failed.", EventName = "AbortFailed")] 36[LoggerMessage(9, LogLevel.Debug, "Client timeout ({ClientTimeout}ms) elapsed without receiving a message from the client. Closing connection.", EventName = "ClientTimeout")] 39[LoggerMessage(10, LogLevel.Debug, "The maximum message size of {MaxMessageSize}B was exceeded while parsing the Handshake. The message size can be configured in AddHubOptions.", EventName = "HandshakeSizeLimitExceeded")] 42[LoggerMessage(11, LogLevel.Debug, "HubProtocol '{Protocol} v{Version}' does not support Stateful Reconnect. Disabling the feature.", EventName = "DisablingReconnect")]
HubConnectionHandlerLog.cs (6)
10[LoggerMessage(1, LogLevel.Error, "Error when dispatching '{HubMethod}' on hub.", EventName = "ErrorDispatchingHubEvent")] 13[LoggerMessage(2, LogLevel.Debug, "Error when processing requests.", EventName = "ErrorProcessingRequest")] 16[LoggerMessage(3, LogLevel.Trace, "Abort callback failed.", EventName = "AbortFailed")] 19[LoggerMessage(4, LogLevel.Debug, "Error when sending Close message.", EventName = "ErrorSendingClose")] 22[LoggerMessage(5, LogLevel.Debug, "OnConnectedAsync started.", EventName = "ConnectedStarting")] 25[LoggerMessage(6, LogLevel.Debug, "OnConnectedAsync ending.", EventName = "ConnectedEnding")]
Internal\DefaultHubDispatcher.cs (1)
840var loggingEnabled = logger.IsEnabled(LogLevel.Critical);
Internal\DefaultHubDispatcherLog.cs (28)
12[LoggerMessage(1, LogLevel.Debug, "Received hub invocation: {InvocationMessage}.", EventName = "ReceivedHubInvocation")] 15[LoggerMessage(2, LogLevel.Debug, "Received unsupported message of type '{MessageType}'.", EventName = "UnsupportedMessageReceived")] 18[LoggerMessage(3, LogLevel.Debug, "Unknown hub method '{HubMethod}'.", EventName = "UnknownHubMethod")] 23[LoggerMessage(5, LogLevel.Debug, "Failed to invoke '{HubMethod}' because user is unauthorized.", EventName = "HubMethodNotAuthorized")] 28if (logger.IsEnabled(LogLevel.Trace)) 35[LoggerMessage(6, LogLevel.Trace, "InvocationId {InvocationId}: Streaming result of type '{ResultType}'.", EventName = "StreamingResult", SkipEnabledCheck = true)] 40if (logger.IsEnabled(LogLevel.Trace)) 47[LoggerMessage(7, LogLevel.Trace, "InvocationId {InvocationId}: Sending result of type '{ResultType}'.", EventName = "SendingResult", SkipEnabledCheck = true)] 50[LoggerMessage(8, LogLevel.Error, "Failed to invoke hub method '{HubMethod}'.", EventName = "FailedInvokingHubMethod")] 53[LoggerMessage(9, LogLevel.Trace, "'{HubName}' hub method '{HubMethod}' is bound.", EventName = "HubMethodBound")] 56[LoggerMessage(10, LogLevel.Debug, "Canceling stream for invocation {InvocationId}.", EventName = "CancelStream")] 59[LoggerMessage(11, LogLevel.Debug, "CancelInvocationMessage received unexpectedly.", EventName = "UnexpectedCancel")] 62[LoggerMessage(12, LogLevel.Debug, "Received stream hub invocation: {InvocationMessage}.", EventName = "ReceivedStreamHubInvocation")] 65[LoggerMessage(13, LogLevel.Debug, "A streaming method was invoked with a non-streaming invocation : {InvocationMessage}.", EventName = "StreamingMethodCalledWithInvoke")] 68[LoggerMessage(14, LogLevel.Debug, "A non-streaming method was invoked with a streaming invocation : {InvocationMessage}.", EventName = "NonStreamingMethodCalledWithStream")] 71[LoggerMessage(15, LogLevel.Debug, "A streaming method returned a value that cannot be used to build enumerator {HubMethod}.", EventName = "InvalidReturnValueFromStreamingMethod")] 77[LoggerMessage(16, LogLevel.Trace, "Received item for stream '{StreamId}'.", EventName = "ReceivedStreamItem")] 80[LoggerMessage(17, LogLevel.Trace, "Creating streaming parameter channel '{StreamId}'.", EventName = "StartingParameterStream")] 86[LoggerMessage(18, LogLevel.Trace, "Stream '{StreamId}' has been completed by client.", EventName = "CompletingStream")] 92[LoggerMessage(19, LogLevel.Debug, "Stream '{StreamId}' closed with error '{Error}'.", EventName = "ClosingStreamWithBindingError")] 97[LoggerMessage(21, LogLevel.Debug, "StreamItemMessage received unexpectedly.", EventName = "UnexpectedStreamItem")] 100[LoggerMessage(22, LogLevel.Debug, "Parameters to hub method '{HubMethod}' are incorrect.", EventName = "InvalidHubParameters")] 103[LoggerMessage(23, LogLevel.Debug, "Invocation ID '{InvocationId}' is already in use.", EventName = "InvocationIdInUse")] 106[LoggerMessage(24, LogLevel.Debug, "CompletionMessage for invocation ID '{InvocationId}' received unexpectedly.", EventName = "UnexpectedCompletion")] 109[LoggerMessage(25, LogLevel.Error, "Invocation ID {InvocationId}: Failed while sending stream items from hub method {HubMethod}.", EventName = "FailedStreaming")] 112[LoggerMessage(26, LogLevel.Trace, "Dropping {MessageType} with ID '{InvocationId}'.", EventName = "DroppingMessage")] 115[LoggerMessage(27, LogLevel.Trace, "Received AckMessage with Sequence ID '{SequenceId}'.", EventName = "ReceivedAckMessage")] 118[LoggerMessage(28, LogLevel.Trace, "Received SequenceMessage with Sequence ID '{SequenceId}'.", EventName = "ReceivedSequenceMessage")]
Internal\DefaultHubProtocolResolver.cs (2)
49[LoggerMessage(1, LogLevel.Debug, "Registered SignalR Protocol: {ProtocolName}, implemented by {ImplementationType}.", EventName = "RegisteredSignalRProtocol")] 52[LoggerMessage(2, LogLevel.Debug, "Found protocol implementation for requested protocol: {ProtocolName}.", EventName = "FoundImplementationForProtocol")]
Microsoft.AspNetCore.StaticAssets (48)
_generated\0\LoggerMessage.g.cs (32)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, nameof(StaticAssetNotFoundInManifest)), "The static asset '{Path}' was not found in the built time manifest. This file will not be available at runtime if it is not available at compile time during the publish process. If the file was not added to the project during development, and is created at runtime, use the StaticFiles middleware to serve it instead.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 35global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "MethodNotSupported"), "{Method} requests are not supported", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 44if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 51global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "FileServed"), "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 60if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 67global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "EndpointMatched"), "Static files was skipped as the request already matched an endpoint.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 76if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 83global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "PathMismatch"), "The request path {Path} does not match the path filter", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 92if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 99global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "FileTypeNotSupported"), "The request path {Path} does not match a supported file type", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 108if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 115global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "FileNotFound"), "The request path {Path} does not match an existing file", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 124if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 131global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "FileNotModified"), "The file {Path} was not modified", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 140if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 147global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(7, "PreconditionFailed"), "Precondition for {Path} failed", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 156if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 163global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "Handled"), "Handled. Status code: {StatusCode} File: {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 172if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 179global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RangeNotSatisfiable"), "Range not satisfiable for {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 188if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 195global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Primitives.StringValues, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "SendingFileRange"), "Sending {Range} of file {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 204if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 211global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Primitives.StringValues, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "CopyingFileRange"), "Copying {Range} of file {Path} to the response body", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 220if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 227global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "WriteCancelled"), "The file transmission was cancelled", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 236if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 243global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "WebRootPathNotFound"), "The WebRootPath was not found: {WebRootPath}. Static files may be unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 252if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 259global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "StaticWebAssetsNotEnabled"), "The application is not running against the published output and Static Web Assets are not enabled. To configure static web assets in other environments, call 'StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment, IConfiguration)' to enable them.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 268if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
394[LoggerMessage(1, LogLevel.Warning, StaticAssetNotFoundInManifestMessage)]
LoggerExtensions.cs (15)
11[LoggerMessage(1, LogLevel.Debug, "{Method} requests are not supported", EventName = "MethodNotSupported")] 14[LoggerMessage(2, LogLevel.Information, "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", EventName = "FileServed")] 26[LoggerMessage(15, LogLevel.Debug, "Static files was skipped as the request already matched an endpoint.", EventName = "EndpointMatched")] 29[LoggerMessage(3, LogLevel.Debug, "The request path {Path} does not match the path filter", EventName = "PathMismatch")] 32[LoggerMessage(4, LogLevel.Debug, "The request path {Path} does not match a supported file type", EventName = "FileTypeNotSupported")] 35[LoggerMessage(5, LogLevel.Debug, "The request path {Path} does not match an existing file", EventName = "FileNotFound")] 38[LoggerMessage(6, LogLevel.Information, "The file {Path} was not modified", EventName = "FileNotModified")] 41[LoggerMessage(7, LogLevel.Information, "Precondition for {Path} failed", EventName = "PreconditionFailed")] 44[LoggerMessage(8, LogLevel.Debug, "Handled. Status code: {StatusCode} File: {Path}", EventName = "Handled")] 47[LoggerMessage(9, LogLevel.Warning, "Range not satisfiable for {Path}", EventName = "RangeNotSatisfiable")] 50[LoggerMessage(10, LogLevel.Information, "Sending {Range} of file {Path}", EventName = "SendingFileRange")] 53[LoggerMessage(11, LogLevel.Debug, "Copying {Range} of file {Path} to the response body", EventName = "CopyingFileRange")] 56[LoggerMessage(14, LogLevel.Debug, "The file transmission was cancelled", EventName = "WriteCancelled")] 59[LoggerMessage(16, LogLevel.Warning, 63[LoggerMessage(17, LogLevel.Warning,
Microsoft.AspNetCore.StaticFiles (42)
_generated\0\LoggerMessage.g.cs (28)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "MethodNotSupported"), "{Method} requests are not supported", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(2, "FileServed"), "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(15, "EndpointMatched"), "Static files was skipped as the request already matched an endpoint.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "PathMismatch"), "The request path {Path} does not match the path filter", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 74global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "FileTypeNotSupported"), "The request path {Path} does not match a supported file type", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 83if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 90global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "FileNotFound"), "The request path {Path} does not match an existing file", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 99if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 106global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(6, "FileNotModified"), "The file {Path} was not modified", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 115if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(7, "PreconditionFailed"), "Precondition for {Path} failed", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 138global::Microsoft.Extensions.Logging.LoggerMessage.Define<int, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(8, "Handled"), "Handled. Status code: {StatusCode} File: {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RangeNotSatisfiable"), "Range not satisfiable for {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Primitives.StringValues, string>(global::Microsoft.Extensions.Logging.LogLevel.Information, new global::Microsoft.Extensions.Logging.EventId(10, "SendingFileRange"), "Sending {Range} of file {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Primitives.StringValues, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(11, "CopyingFileRange"), "Copying {Range} of file {Path} to the response body", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 202global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(14, "WriteCancelled"), "The file transmission was cancelled", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 211if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "WebRootPathNotFound"), "The WebRootPath was not found: {WebRootPath}. Static files may be unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggerExtensions.cs (14)
14[LoggerMessage(1, LogLevel.Debug, "{Method} requests are not supported", EventName = "MethodNotSupported")] 17[LoggerMessage(2, LogLevel.Information, "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", EventName = "FileServed")] 29[LoggerMessage(15, LogLevel.Debug, "Static files was skipped as the request already matched an endpoint.", EventName = "EndpointMatched")] 32[LoggerMessage(3, LogLevel.Debug, "The request path {Path} does not match the path filter", EventName = "PathMismatch")] 35[LoggerMessage(4, LogLevel.Debug, "The request path {Path} does not match a supported file type", EventName = "FileTypeNotSupported")] 38[LoggerMessage(5, LogLevel.Debug, "The request path {Path} does not match an existing file", EventName = "FileNotFound")] 41[LoggerMessage(6, LogLevel.Information, "The file {Path} was not modified", EventName = "FileNotModified")] 44[LoggerMessage(7, LogLevel.Information, "Precondition for {Path} failed", EventName = "PreconditionFailed")] 47[LoggerMessage(8, LogLevel.Debug, "Handled. Status code: {StatusCode} File: {Path}", EventName = "Handled")] 50[LoggerMessage(9, LogLevel.Warning, "Range not satisfiable for {Path}", EventName = "RangeNotSatisfiable")] 53[LoggerMessage(10, LogLevel.Information, "Sending {Range} of file {Path}", EventName = "SendingFileRange")] 56[LoggerMessage(11, LogLevel.Debug, "Copying {Range} of file {Path} to the response body", EventName = "CopyingFileRange")] 59[LoggerMessage(14, LogLevel.Debug, "The file transmission was cancelled", EventName = "WriteCancelled")] 62[LoggerMessage(16, LogLevel.Warning,
Microsoft.AspNetCore.Watch.BrowserRefresh (5)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (5)
222LogLevel.Debug, 227LogLevel.Debug, 232LogLevel.Warning, 238LogLevel.Warning, 245LogLevel.Debug,
Microsoft.AspNetCore.WebSockets (7)
_generated\0\LoggerMessage.g.cs (4)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "CompressionAccepted"), "WebSocket compression negotiation accepted with values '{CompressionResponse}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "CompressionNotAccepted"), "Compression negotiation not accepted by server.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
WebSocketMiddleware.cs (3)
75if (_logger.IsEnabled(LogLevel.Debug)) 321[LoggerMessage(1, LogLevel.Debug, "WebSocket compression negotiation accepted with values '{CompressionResponse}'.", EventName = "CompressionAccepted")] 324[LoggerMessage(2, LogLevel.Debug, "Compression negotiation not accepted by server.", EventName = "CompressionNotAccepted")]
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\DiagnosticReporterLoggerProvider.cs (5)
35public bool IsEnabled(LogLevel logLevel) 37return logLevel >= LogLevel.Warning; 40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 43if (logLevel < LogLevel.Warning) 46var kind = logLevel == LogLevel.Warning ? WorkspaceDiagnosticKind.Warning : WorkspaceDiagnosticKind.Failure;
Microsoft.DotNet.HotReload.Watch (147)
Build\BuildReporter.cs (1)
27if (logger.IsEnabled(LogLevel.Trace))
Context\EnvironmentOptions.cs (1)
41LogLevel? CliLogLevel = null,
Context\EnvironmentVariables.cs (3)
29public static LogLevel? CliLogLevel 35? LogLevel.Trace 37? LogLevel.Debug
Context\GlobalOptions.cs (1)
10public LogLevel LogLevel { get; init; }
HotReload\CompilationHandler.cs (2)
646if (descriptor.Level != LogLevel.None) 1037if (!Logger.IsEnabled(LogLevel.Trace))
Process\ProjectLauncher.cs (1)
75if (clients.IsManagedAgentSupported && Logger.IsEnabled(LogLevel.Trace))
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (2)
18public bool IsEnabled(LogLevel logLevel) => true; 20public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
165=> Logger.IsEnabled(LogLevel.Debug) ? ResponseLoggingLevel.Verbose : ResponseLoggingLevel.WarningsAndErrors;
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (4)
101var level = severity switch 103AgentMessageSeverity.Error => LogLevel.Error, 104AgentMessageSeverity.Warning => LogLevel.Warning, 105_ => LogLevel.Debug
src\sdk\src\Dotnet.Watch\HotReloadClient\Logging\LogEvents.cs (22)
12internal readonly record struct LogEvent<TArgs>(EventId Id, LogLevel Level, string Message); 19private static LogEvent<None> Create(LogLevel level, string message) 22private static LogEvent<TArgs> Create<TArgs>(LogLevel level, string message) 63public static readonly LogEvent<int> SendingUpdateBatch = Create<int>(LogLevel.Debug, "Sending update batch #{0}"); 64public static readonly LogEvent<int> UpdateBatchCompleted = Create<int>(LogLevel.Debug, "Update batch #{0} completed."); 65public static readonly LogEvent<int> UpdateBatchFailed = Create<int>(LogLevel.Debug, "Update batch #{0} failed."); 66public static readonly LogEvent<int> UpdateBatchCanceled = Create<int>(LogLevel.Debug, "Update batch #{0} canceled."); 67public static readonly LogEvent<(int, string)> UpdateBatchFailedWithError = Create<(int, string)>(LogLevel.Debug, "Update batch #{0} failed with error: {1}"); 68public static readonly LogEvent<(int, string)> UpdateBatchExceptionStackTrace = Create<(int, string)>(LogLevel.Debug, "Update batch #{0} exception stack trace: {1}"); 69public static readonly LogEvent<string> Capabilities = Create<string>(LogLevel.Debug, "Capabilities: '{0}'."); 70public static readonly LogEvent<None> RefreshingBrowser = Create(LogLevel.Debug, "Refreshing browser."); 71public static readonly LogEvent<None> ReloadingBrowser = Create(LogLevel.Debug, "Reloading browser."); 72public static readonly LogEvent<None> SendingWaitMessage = Create(LogLevel.Debug, "Sending wait message."); 73public static readonly LogEvent<None> NoBrowserConnected = Create(LogLevel.Debug, "No browser is connected."); 74public static readonly LogEvent<None> FailedToReceiveResponseFromConnectedBrowser = Create(LogLevel.Debug, "Failed to receive response from a connected browser."); 75public static readonly LogEvent<None> UpdatingDiagnostics = Create(LogLevel.Debug, "Updating diagnostics."); 76public static readonly LogEvent<string> SendingStaticAssetUpdateRequest = Create<string>(LogLevel.Debug, "Sending static asset update request to connected browsers: '{0}'."); 77public static readonly LogEvent<string> RefreshServerRunningAt = Create<string>(LogLevel.Debug, "Refresh server running at {0}."); 78public static readonly LogEvent<None> ConnectedToRefreshServer = Create(LogLevel.Debug, "Connected to refresh server."); 79public static readonly LogEvent<string> ManifestFileNotFound = Create<string>(LogLevel.Debug, "Manifest file '{0}' not found."); 80public static readonly LogEvent<string> ProjectSpecifiesCapabilities = Create<string>(LogLevel.Debug, "Project specifies capabilities: {0}."); 81public static readonly LogEvent<(Version, string)> UsingCapabilitiesBasedOnTargetFrameworkVersion = Create<(Version, string)>(LogLevel.Debug, "Using capabilities based on project target framework version: '{0}': {1}.");
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (1)
98if (logger.IsEnabled(LogLevel.Trace))
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebAssemblyHotReloadClient.cs (1)
120var loggingLevel = Logger.IsEnabled(LogLevel.Debug) ? ResponseLoggingLevel.Verbose : ResponseLoggingLevel.WarningsAndErrors;
UI\ConsoleInputReader.cs (2)
8internal sealed class ConsoleInputReader(IConsole console, LogLevel logLevel, bool suppressEmojis) 14if (logLevel > LogLevel.Information)
UI\ConsoleReporter.cs (5)
45public void Report(EventId id, Emoji emoji, LogLevel level, string message) 49LogLevel.Critical or LogLevel.Error => ConsoleColor.Red, 50LogLevel.Warning => ConsoleColor.Yellow, 51LogLevel.Information => (ConsoleColor?)null,
UI\IReporter.cs (100)
90internal sealed class LoggerFactory(IReporter reporter, LogLevel level) : ILoggerFactory 92private sealed class Logger(IReporter reporter, LogLevel level, string categoryName) : ILogger 94public bool IsEnabled(LogLevel logLevel) 97public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 99if (logLevel == LogLevel.None || !IsEnabled(logLevel)) 112LogLevel.Error => Emoji.Error, 113LogLevel.Warning => Emoji.Warning, 136internal abstract class MessageDescriptor(string? format, Emoji emoji, LogLevel level, EventId id) 143public LogLevel Level { get; } = level; 146private static MessageDescriptor<None> Create(string format, Emoji emoji, LogLevel level) 149private static MessageDescriptor<TArgs> Create<TArgs>(string format, Emoji emoji, LogLevel level) 161=> Create<TArgs>(new EventId(++s_id), format: null, Emoji.Default, LogLevel.None); 163private static MessageDescriptor<TArgs> Create<TArgs>(EventId id, string? format, Emoji emoji, LogLevel level) 184public static readonly MessageDescriptor<string> CommandDoesNotSupportHotReload = Create<string>("Command '{0}' does not support Hot Reload.", Emoji.HotReload, LogLevel.Debug); 185public static readonly MessageDescriptor<None> HotReloadDisabledByCommandLineSwitch = Create("Hot Reload disabled by command line switch.", Emoji.HotReload, LogLevel.Debug); 186public static readonly MessageDescriptor<None> HotReloadSessionStarted = Create("Hot reload session started.", Emoji.HotReload, LogLevel.Debug); 188public static readonly MessageDescriptor<int> ProjectsRebuilt = Create<int>("Projects rebuilt ({0})", Emoji.HotReload, LogLevel.Debug); 189public static readonly MessageDescriptor<int> ProjectsRestarted = Create<int>("Projects restarted ({0})", Emoji.HotReload, LogLevel.Debug); 191public static readonly MessageDescriptor<None> ProjectRestarting = Create("Restarting ...", Emoji.Watch, LogLevel.Debug); 192public static readonly MessageDescriptor<None> ProjectRestarted = Create("Restarted", Emoji.Watch, LogLevel.Debug); 193public static readonly MessageDescriptor<None> ProjectRelaunching = Create("Relaunching ...", Emoji.Watch, LogLevel.Information); 194public static readonly MessageDescriptor<None> ProjectRelaunched = Create("Relaunched", Emoji.Watch, LogLevel.Debug); 195public static readonly MessageDescriptor<None> ProcessCrashedAndWillBeRelaunched = Create("Process crashed and will be relaunched on file change", Emoji.Watch, LogLevel.Debug); 196public static readonly MessageDescriptor<int> ProjectDependenciesDeployed = Create<int>("Project dependencies deployed ({0})", Emoji.HotReload, LogLevel.Debug); 197public static readonly MessageDescriptor<None> FixBuildError = Create("Fix the error to continue or press Ctrl+C to exit.", Emoji.Watch, LogLevel.Warning); 198public static readonly MessageDescriptor<None> WaitingForChanges = Create("Waiting for changes", Emoji.Watch, LogLevel.Information); 199public static readonly MessageDescriptor<(string, string, int)> LaunchedProcess = Create<(string, string, int)>("Launched '{0}' with arguments '{1}': process id {2}", Emoji.Launch, LogLevel.Debug); 200public static readonly MessageDescriptor<long> ManagedCodeChangesApplied = Create<long>("C# and Razor changes applied in {0}ms.", Emoji.HotReload, LogLevel.Information); 201public static readonly MessageDescriptor<long> StaticAssetsChangesApplied = Create<long>("Static asset changes applied in {0}ms.", Emoji.HotReload, LogLevel.Information); 202public static readonly MessageDescriptor<None> StaticWebAssetManifestNotFound = Create("Static web asset manifest not found.", Emoji.Warning, LogLevel.Warning); 203public static readonly MessageDescriptor<string> ScopedCssBundleFileNotFound = Create<string>("Scoped CSS bundle file '{BundleFile}' not found.", Emoji.Warning, LogLevel.Warning); 214public static readonly MessageDescriptor<None> WaitingForFileChangeBeforeRestarting = Create("Waiting for a file to change before restarting ...", Emoji.Wait, LogLevel.Warning); 215public static readonly MessageDescriptor<None> WatchingWithHotReload = Create("Watching with Hot Reload.", Emoji.Watch, LogLevel.Debug); 216public static readonly MessageDescriptor<None> RestartInProgress = Create("Restart in progress.", Emoji.Restart, LogLevel.Information); 217public static readonly MessageDescriptor<None> RestartRequested = Create("Restart requested.", Emoji.Restart, LogLevel.Information); 218public static readonly MessageDescriptor<None> Restarting = Create("Restarting.", Emoji.Restart, LogLevel.Information); 219public static readonly MessageDescriptor<None> ShutdownRequested = Create("Shutdown requested. Press Ctrl+C again to force exit.", Emoji.Stop, LogLevel.Information); 220public static readonly MessageDescriptor<string> ApplyUpdate_Error = Create<string>("{0}", Emoji.Error, LogLevel.Error); 221public static readonly MessageDescriptor<string> ApplyUpdate_Warning = Create<string>("{0}", Emoji.Warning, LogLevel.Warning); 222public static readonly MessageDescriptor<string> ApplyUpdate_Verbose = Create<string>("{0}", Emoji.Default, LogLevel.Debug); 223public static readonly MessageDescriptor<string> ApplyUpdate_AutoVerbose = Create<string>("{0}", Emoji.Default, LogLevel.Debug); 224public static readonly MessageDescriptor<string> ApplyUpdate_ChangingEntryPoint = Create<string>("{0} Press \"Ctrl + R\" to restart.", Emoji.Warning, LogLevel.Warning); 225public static readonly MessageDescriptor<None> ConfiguredToLaunchBrowser = Create("Configured to launch a browser on ASP.NET Core application startup.", Emoji.Watch, LogLevel.Debug); 226public static readonly MessageDescriptor<None> UsingBrowserRefreshMiddleware = Create("Using browser-refresh middleware", Emoji.Default, LogLevel.Debug); 227public static readonly MessageDescriptor<string> BrowserRefreshSuppressedViaEnvironmentVariable_ManualRefreshRequired = Create<string>("Browser refresh is suppressed via environment variable '{0}'. To reload static assets after an update refresh browser manually.", Emoji.Watch, LogLevel.Debug); 228public static readonly MessageDescriptor<string> BrowserRefreshSuppressedViaEnvironmentVariable_ApplicationWillBeRestarted = Create<string>("Browser refresh is suppressed via environment variable '{0}'. Application will be restarted when updated.", Emoji.Watch, LogLevel.Warning); 229public static readonly MessageDescriptor<None> BrowserRefreshNotSupportedByProjectTargetFramework_ManualRefreshRequired = Create("Browser refresh is not supported by the project target framework. To reload static assets after an update refresh browser manually. For more information see 'https://aka.ms/dotnet/watch/unsupported-tfm'.", Emoji.Watch, LogLevel.Warning); 230public static readonly MessageDescriptor<None> BrowserRefreshNotSupportedByProjectTargetFramework_ApplicationWillBeRestarted = Create("Browser refresh is not supported by the project target framework. Application will be restarted when updated. For more information see 'https://aka.ms/dotnet/watch/unsupported-tfm'.", Emoji.Watch, LogLevel.Warning); 234public static readonly MessageDescriptor<string> LaunchingBrowser = Create<string>("Launching browser: {0}", Emoji.Default, LogLevel.Debug); 235public static readonly MessageDescriptor<(string, string)> LaunchingBrowserWithUrl = Create<(string, string)>("Launching browser: {0} {1}", Emoji.Default, LogLevel.Debug); 240public static readonly MessageDescriptor<None> RestartingApplicationToApplyChanges = Create("Restarting application to apply changes ...", Emoji.Default, LogLevel.Information); 241public static readonly MessageDescriptor<None> RestartingApplication = Create("Restarting application ...", Emoji.Default, LogLevel.Information); 242public static readonly MessageDescriptor<(string, ChangeKind, string)> IgnoringChangeInHiddenDirectory = Create<(string, ChangeKind, string)>("Ignoring change in hidden directory '{0}': {1} '{2}'", Emoji.Watch, LogLevel.Trace); 243public static readonly MessageDescriptor<(ChangeKind, string)> IgnoringChangeInOutputDirectory = Create<(ChangeKind, string)>("Ignoring change in output directory: {0} '{1}'", Emoji.Watch, LogLevel.Trace); 244public static readonly MessageDescriptor<(string, ChangeKind, string, string, string)> IgnoringChangeInExcludedFile = Create<(string, ChangeKind, string, string, string)>("Ignoring change in excluded file '{0}': {1}. Path matches {2} glob '{3}' set in '{4}'.", Emoji.Watch, LogLevel.Trace); 245public static readonly MessageDescriptor<string> FileAdditionTriggeredReEvaluation = Create<string>("File addition triggered re-evaluation: '{0}'.", Emoji.Watch, LogLevel.Debug); 246public static readonly MessageDescriptor<string> ProjectChangeTriggeredReEvaluation = Create<string>("Project change triggered re-evaluation: '{0}'.", Emoji.Watch, LogLevel.Debug); 247public static readonly MessageDescriptor<None> ReEvaluationCompleted = Create("Re-evaluation completed.", Emoji.Watch, LogLevel.Debug); 248public static readonly MessageDescriptor<None> NoManagedCodeChangesToApply = Create("No managed code changes to apply.", Emoji.Watch, LogLevel.Information); 249public static readonly MessageDescriptor<None> Exited = Create("Exited", Emoji.Watch, LogLevel.Information); 250public static readonly MessageDescriptor<None> ExitedWithUnknownErrorCode = Create("Exited with unknown error code", Emoji.Error, LogLevel.Error); 251public static readonly MessageDescriptor<int> ExitedWithErrorCode = Create<int>("Exited with error code {0}", Emoji.Error, LogLevel.Error); 252public static readonly MessageDescriptor<(string, string, string)> FailedToLaunchProcess = Create<(string, string, string)>("Failed to launch '{0}' with arguments '{1}': {2}", Emoji.Error, LogLevel.Error); 253public static readonly MessageDescriptor<string> ApplicationFailed = Create<string>("Application failed: {0}", Emoji.Error, LogLevel.Error); 254public static readonly MessageDescriptor<(int, long, int?)> ProcessRunAndExited = Create<(int, long, int?)>("Process id {0} ran for {1}ms and exited with exit code {2}.", Emoji.Watch, LogLevel.Debug); 255public static readonly MessageDescriptor<(int, int)> WaitingForProcessToExitWithin = Create<(int, int)>("Waiting for process {0} to exit within {1}s.", Emoji.Watch, LogLevel.Debug); 256public static readonly MessageDescriptor<(int, int)> WaitingForProcessToExit = Create<(int, int)>("Waiting for process {0} to exit ({1}).", Emoji.Watch, LogLevel.Debug); 257public static readonly MessageDescriptor<(int, string)> FailedToKillProcess = Create<(int, string)>("Failed to kill process {0}: {1}.", Emoji.Error, LogLevel.Error); 258public static readonly MessageDescriptor<(int, string)> TerminatingProcess = Create<(int, string)>("Terminating process {0} ({1}).", Emoji.Watch, LogLevel.Debug); 259public static readonly MessageDescriptor<(string, int, string)> FailedToSendSignalToProcess = Create<(string, int, string)>("Failed to send {0} signal to process {1}: {2}", Emoji.Warning, LogLevel.Warning); 260public static readonly MessageDescriptor<(string, int, string)> ErrorReadingProcessOutput = Create<(string, int, string)>("Error reading {0} of process {1}: {2}", Emoji.Watch, LogLevel.Debug); 262public static readonly MessageDescriptor<string> HotReloadCapabilities = Create<string>("Hot reload capabilities: {0}.", Emoji.HotReload, LogLevel.Debug); 263public static readonly MessageDescriptor<None> HotReloadSuspended = Create("Hot reload suspended. To continue hot reload, press \"Ctrl + R\".", Emoji.HotReload, LogLevel.Information); 264public static readonly MessageDescriptor<None> UnableToApplyChanges = Create("Unable to apply changes due to compilation errors.", Emoji.HotReload, LogLevel.Information); 265public static readonly MessageDescriptor<None> RestartNeededToApplyChanges = Create("Restart is needed to apply the changes.", Emoji.HotReload, LogLevel.Information); 266public static readonly MessageDescriptor<None> HotReloadEnabled = Create("Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.", Emoji.HotReload, LogLevel.Information); 267public static readonly MessageDescriptor<Version> ProjectDoesNotSupportHotReload_TargetFramework = Create<Version>("Project does not support Hot Reload: Target Framework is older than {0}. Application will be restarted when updated.", Emoji.Warning, LogLevel.Warning); 268public static readonly MessageDescriptor<(string, string, string, string)> ProjectDoesNotSupportHotReload_Property = Create<(string, string, string, string)>("Project does not support Hot Reload: '{0}' property is '{1}'. Application will be restarted when updated. Set '{2}' project property to '{3}' to enable Hot Reload.", Emoji.Warning, LogLevel.Warning); 269public static readonly MessageDescriptor<None> PressCtrlRToRestart = Create("Press Ctrl+R to restart.", Emoji.LightBulb, LogLevel.Information); 270public static readonly MessageDescriptor<(string, string)> ApplicationKind_BlazorHosted = Create<(string, string)>("Application kind: BlazorHosted. '{0}' references BlazorWebAssembly project '{1}'.", Emoji.Default, LogLevel.Debug); 271public static readonly MessageDescriptor<None> ApplicationKind_BlazorWebAssembly = Create("Application kind: BlazorWebAssembly.", Emoji.Default, LogLevel.Debug); 272public static readonly MessageDescriptor<None> ApplicationKind_WebApplication = Create("Application kind: WebApplication.", Emoji.Default, LogLevel.Debug); 273public static readonly MessageDescriptor<None> ApplicationKind_Default = Create("Application kind: Default.", Emoji.Default, LogLevel.Debug); 274public static readonly MessageDescriptor<None> ApplicationKind_WebSockets = Create("Application kind: WebSockets.", Emoji.Default, LogLevel.Debug); 275public static readonly MessageDescriptor<int> WatchingFilesForChanges = Create<int>("Watching {0} file(s) for changes", Emoji.Watch, LogLevel.Debug); 276public static readonly MessageDescriptor<string> WatchingFilesForChanges_FilePath = Create<string>("> {0}", Emoji.Watch, LogLevel.Trace); 277public static readonly MessageDescriptor<None> LoadingProjects = Create("Loading projects ...", Emoji.Watch, LogLevel.Information); 278public static readonly MessageDescriptor<(int, double)> LoadedProjects = Create<(int, double)>("Loaded {0} project(s) in {1:0.0}s.", Emoji.Watch, LogLevel.Information); 279public static readonly MessageDescriptor<string> Building = Create<string>("Building {0} ...", Emoji.Default, LogLevel.Debug); 280public static readonly MessageDescriptor<string> Restoring = Create<string>("Restoring {0} ...", Emoji.Default, LogLevel.Debug); 281public static readonly MessageDescriptor<string> BuildFailed = Create<string>("Build failed: {0}", Emoji.Default, LogLevel.Debug); 282public static readonly MessageDescriptor<string> BuildSucceeded = Create<string>("Build succeeded: {0}", Emoji.Default, LogLevel.Debug); 283public static readonly MessageDescriptor<string> RestoreFailed = Create<string>("Restore failed: {0}", Emoji.Default, LogLevel.Debug); 284public static readonly MessageDescriptor<string> RestoreSucceeded = Create<string>("Restore succeeded: {0}", Emoji.Default, LogLevel.Debug); 288public static readonly MessageDescriptor<None> NoDevicesAvailable = Create("No devices are available for this project.", Emoji.Error, LogLevel.Error); 289public static readonly MessageDescriptor<(string, string)> FileSpecifiesMultipleTargetFrameworks = Create<(string, string)>("File '{0}' specifies multiple target frameworks: '{1}'. Specify which framework to run using '--framework'.", Emoji.Watch, LogLevel.Error); 292internal sealed class MessageDescriptor<TArgs>(string? format, Emoji emoji, LogLevel level, EventId id) 295private static string? VerifyFormat(string? format, LogLevel level) 297Debug.Assert(format is null == level is LogLevel.None); 338void Report(EventId id, Emoji emoji, LogLevel level, string message);
Microsoft.Extensions.AI (80)
ChatCompletion\FunctionInvokingChatClient.cs (17)
1420bool traceLoggingEnabled = _logger.IsEnabled(LogLevel.Trace); 1438if (!loggedInvoke && _logger.IsEnabled(LogLevel.Debug)) 1487if (!loggedResult && _logger.IsEnabled(LogLevel.Debug)) 1938[LoggerMessage(LogLevel.Debug, "Invoking {MethodName}.", SkipEnabledCheck = true)] 1941[LoggerMessage(LogLevel.Trace, "Invoking {MethodName}({Arguments}).", SkipEnabledCheck = true)] 1944[LoggerMessage(LogLevel.Debug, "{MethodName} invocation completed. Duration: {Duration}", SkipEnabledCheck = true)] 1947[LoggerMessage(LogLevel.Trace, "{MethodName} invocation completed. Duration: {Duration}. Result: {Result}", SkipEnabledCheck = true)] 1950[LoggerMessage(LogLevel.Debug, "{MethodName} invocation canceled.")] 1953[LoggerMessage(LogLevel.Error, "{MethodName} invocation failed.")] 1956[LoggerMessage(LogLevel.Debug, "Reached maximum iteration count of {MaximumIterationsPerRequest}. Stopping function invocation loop.")] 1959[LoggerMessage(LogLevel.Debug, "Function '{FunctionName}' requires approval. Converting to approval request.")] 1962[LoggerMessage(LogLevel.Debug, "Processing approval response for '{FunctionName}'. Approved: {Approved}")] 1965[LoggerMessage(LogLevel.Debug, "Function '{FunctionName}' was rejected. Reason: {Reason}")] 1968[LoggerMessage(LogLevel.Warning, "Maximum consecutive errors ({MaxErrors}) exceeded. Throwing aggregated exceptions.")] 1971[LoggerMessage(LogLevel.Warning, "Function '{FunctionName}' not found.")] 1974[LoggerMessage(LogLevel.Debug, "Function '{FunctionName}' is not invocable (declaration only). Terminating loop.")] 1977[LoggerMessage(LogLevel.Debug, "Function '{FunctionName}' requested termination of the processing loop.")]
ChatCompletion\LoggingChatClient.cs (16)
22/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 24/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment. 57if (_logger.IsEnabled(LogLevel.Debug)) 59if (_logger.IsEnabled(LogLevel.Trace)) 73if (_logger.IsEnabled(LogLevel.Debug)) 75if (_logger.IsEnabled(LogLevel.Trace)) 103if (_logger.IsEnabled(LogLevel.Debug)) 105if (_logger.IsEnabled(LogLevel.Trace)) 156if (_logger.IsEnabled(LogLevel.Trace)) 174[LoggerMessage(LogLevel.Debug, "{MethodName} invoked.")] 177[LoggerMessage(LogLevel.Trace, "{MethodName} invoked: {Messages}. Options: {ChatOptions}. Metadata: {ChatClientMetadata}.")] 180[LoggerMessage(LogLevel.Debug, "{MethodName} completed.")] 183[LoggerMessage(LogLevel.Trace, "{MethodName} completed: {ChatResponse}.")] 186[LoggerMessage(LogLevel.Trace, "GetStreamingResponseAsync received update: {ChatResponseUpdate}")] 189[LoggerMessage(LogLevel.Debug, "{MethodName} canceled.")] 192[LoggerMessage(LogLevel.Error, "{MethodName} failed.")]
ChatCompletion\LoggingChatClientBuilderExtensions.cs (2)
26/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 28/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment.
Embeddings\LoggingEmbeddingGenerator.cs (9)
23/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 25/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment. 58if (_logger.IsEnabled(LogLevel.Debug)) 60if (_logger.IsEnabled(LogLevel.Trace)) 92[LoggerMessage(LogLevel.Debug, "GenerateAsync invoked.")] 95[LoggerMessage(LogLevel.Trace, "GenerateAsync invoked: {Values}. Options: {EmbeddingGenerationOptions}. Metadata: {EmbeddingGeneratorMetadata}.")] 98[LoggerMessage(LogLevel.Debug, "GenerateAsync generated {EmbeddingsCount} embedding(s).")] 101[LoggerMessage(LogLevel.Debug, "GenerateAsync canceled.")] 104[LoggerMessage(LogLevel.Error, "GenerateAsync failed.")]
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (2)
28/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 30/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment.
Image\LoggingImageGenerator.cs (12)
23/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 25/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment. 63if (_logger.IsEnabled(LogLevel.Debug)) 65if (_logger.IsEnabled(LogLevel.Trace)) 79if (_logger.IsEnabled(LogLevel.Debug)) 81if (_logger.IsEnabled(LogLevel.Trace) && response.Contents.All(c => c is not DataContent)) 107[LoggerMessage(LogLevel.Debug, "{MethodName} invoked.")] 110[LoggerMessage(LogLevel.Trace, "{MethodName} invoked: Prompt: {Prompt}. Options: {ImageGenerationOptions}. Metadata: {ImageGeneratorMetadata}.")] 113[LoggerMessage(LogLevel.Debug, "{MethodName} completed.")] 116[LoggerMessage(LogLevel.Trace, "{MethodName} completed: {ImageGenerationResponse}.")] 119[LoggerMessage(LogLevel.Debug, "{MethodName} canceled.")] 122[LoggerMessage(LogLevel.Error, "{MethodName} failed.")]
Image\LoggingImageGeneratorBuilderExtensions.cs (2)
29/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 31/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment.
SpeechToText\LoggingSpeechToTextClient.cs (18)
25/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 27/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment. 61if (_logger.IsEnabled(LogLevel.Debug)) 63if (_logger.IsEnabled(LogLevel.Trace)) 77if (_logger.IsEnabled(LogLevel.Debug)) 79if (_logger.IsEnabled(LogLevel.Trace)) 107if (_logger.IsEnabled(LogLevel.Debug)) 109if (_logger.IsEnabled(LogLevel.Trace)) 160if (_logger.IsEnabled(LogLevel.Debug)) 162if (_logger.IsEnabled(LogLevel.Trace)) 185[LoggerMessage(LogLevel.Debug, "{MethodName} invoked.")] 188[LoggerMessage(LogLevel.Trace, "{MethodName} invoked: Options: {SpeechToTextOptions}. Metadata: {SpeechToTextClientMetadata}.")] 191[LoggerMessage(LogLevel.Debug, "{MethodName} completed.")] 194[LoggerMessage(LogLevel.Trace, "{MethodName} completed: {SpeechToTextResponse}.")] 197[LoggerMessage(LogLevel.Debug, "GetStreamingTextAsync received update.")] 200[LoggerMessage(LogLevel.Trace, "GetStreamingTextAsync received update: {SpeechToTextResponseUpdate}")] 203[LoggerMessage(LogLevel.Debug, "{MethodName} canceled.")] 206[LoggerMessage(LogLevel.Error, "{MethodName} failed.")]
SpeechToText\LoggingSpeechToTextClientBuilderExtensions.cs (2)
28/// When the employed <see cref="ILogger"/> enables <see cref="Logging.LogLevel.Trace"/>, the contents of 30/// <see cref="Logging.LogLevel.Trace"/> is disabled by default and should never be enabled in a production environment.
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
845using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 864using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 886using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 912using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace));
Microsoft.Extensions.AI.Tests (60)
ChatCompletion\FunctionInvokingChatClientTests.cs (18)
1035[InlineData(LogLevel.Trace)] 1036[InlineData(LogLevel.Debug)] 1037[InlineData(LogLevel.Information)] 1038public async Task FunctionInvocationsLogged(LogLevel level) 1070if (level is LogLevel.Trace) 1076else if (level is LogLevel.Debug) 3237c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3258Assert.Contains(logs, e => e.Message.Contains("Function 'UnknownFunc' not found") && e.Level == LogLevel.Warning); 3266c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3290Assert.Contains(logs, e => e.Message.Contains("Function 'Func1' is not invocable (declaration only)") && e.Level == LogLevel.Debug); 3298c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3323Assert.Contains(logs, e => e.Message.Contains("Function 'TerminatingFunc' requested termination of the processing loop") && e.Level == LogLevel.Debug); 3331c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3361Assert.Contains(logs, e => e.Message.Contains("Function 'Func1' requires approval") && e.Level == LogLevel.Debug); 3368using var loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3398Assert.Contains(logs, e => e.Message.Contains("Processing approval response for 'Func1'. Approved: True") && e.Level == LogLevel.Debug); 3405using var loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Debug)); 3435Assert.Contains(logs, e => e.Message.Contains("Function 'Func1' was rejected. Reason: User denied") && e.Level == LogLevel.Debug);
ChatCompletion\LoggingChatClientTests.cs (12)
44[InlineData(LogLevel.Trace)] 45[InlineData(LogLevel.Debug)] 46[InlineData(LogLevel.Information)] 47public async Task GetResponseAsync_LogsResponseInvocationAndCompletion(LogLevel level) 73if (level is LogLevel.Trace) 79else if (level is LogLevel.Debug) 92[InlineData(LogLevel.Trace)] 93[InlineData(LogLevel.Debug)] 94[InlineData(LogLevel.Information)] 95public async Task GetResponseStreamingStreamAsync_LogsUpdateReceived(LogLevel level) 125if (level is LogLevel.Trace) 133else if (level is LogLevel.Debug)
Embeddings\LoggingEmbeddingGeneratorTests.cs (6)
43[InlineData(LogLevel.Trace)] 44[InlineData(LogLevel.Debug)] 45[InlineData(LogLevel.Information)] 46public async Task GetResponseAsync_LogsResponseInvocationAndCompletion(LogLevel level) 70if (level is LogLevel.Trace) 76else if (level is LogLevel.Debug)
Image\LoggingImageGeneratorTests.cs (12)
44[InlineData(LogLevel.Trace)] 45[InlineData(LogLevel.Debug)] 46[InlineData(LogLevel.Information)] 47public async Task GenerateImagesAsync_LogsInvocationAndCompletion(LogLevel level) 73if (level is LogLevel.Trace) 82else if (level is LogLevel.Debug) 95[InlineData(LogLevel.Trace)] 96[InlineData(LogLevel.Debug)] 97[InlineData(LogLevel.Information)] 98public async Task GenerateImagesAsync_WithOriginalImages_LogsInvocationAndCompletion(LogLevel level) 122if (level is LogLevel.Trace) 131else if (level is LogLevel.Debug)
SpeechToText\LoggingSpeechToTextClientTests.cs (12)
46[InlineData(LogLevel.Trace)] 47[InlineData(LogLevel.Debug)] 48[InlineData(LogLevel.Information)] 49public async Task GetTextAsync_LogsResponseInvocationAndCompletion(LogLevel level) 76if (level is LogLevel.Trace) 82else if (level is LogLevel.Debug) 95[InlineData(LogLevel.Trace)] 96[InlineData(LogLevel.Debug)] 97[InlineData(LogLevel.Information)] 98public async Task GetStreamingTextAsync_LogsUpdateReceived(LogLevel level) 129if (level is LogLevel.Trace) 137else if (level is LogLevel.Debug)
Microsoft.Extensions.Caching.Hybrid (11)
Internal\Log.cs (11)
24[LoggerMessage(LogLevel.Error, "Cache MaximumPayloadBytes ({Bytes}) exceeded.", EventName = "MaximumPayloadBytesExceeded", EventId = IdMaximumPayloadBytesExceeded, SkipEnabledCheck = false)] 31[LoggerMessage(LogLevel.Error, "Cache serialization failure.", EventName = "SerializationFailure", EventId = IdSerializationFailure, SkipEnabledCheck = false)] 35[LoggerMessage(LogLevel.Error, "Cache deserialization failure.", EventName = "DeserializationFailure", EventId = IdDeserializationFailure, SkipEnabledCheck = false)] 38[LoggerMessage(LogLevel.Error, "Cache key empty or whitespace.", EventName = "KeyEmptyOrWhitespace", EventId = IdKeyEmptyOrWhitespace, SkipEnabledCheck = false)] 41[LoggerMessage(LogLevel.Error, "Cache key maximum length exceeded (maximum: {MaxLength}, actual: {KeyLength}).", EventName = "MaximumKeyLengthExceeded", 45[LoggerMessage(LogLevel.Error, "Cache backend read failure.", EventName = "CacheBackendReadFailure", EventId = IdCacheBackendReadFailure, SkipEnabledCheck = false)] 48[LoggerMessage(LogLevel.Error, "Cache backend write failure.", EventName = "CacheBackendWriteFailure", EventId = IdCacheBackendWriteFailure, SkipEnabledCheck = false)] 51[LoggerMessage(LogLevel.Error, "Cache key contains invalid content.", EventName = "KeyInvalidContent", EventId = IdKeyInvalidContent, SkipEnabledCheck = false)] 54[LoggerMessage(LogLevel.Error, "Key contains malformed unicode.", 58[LoggerMessage(LogLevel.Error, "Tag contains malformed unicode.", 62[LoggerMessage(LogLevel.Warning, "Cache backend data rejected: {reason}.",
Microsoft.Extensions.Caching.Hybrid.Tests (4)
LogCollector.cs (4)
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() 115bool ILogger.IsEnabled(LogLevel logLevel) => true; 116void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Caching.Memory (3)
MemoryCache.cs (3)
568if (_logger.IsEnabled(LogLevel.Debug)) 593if (_logger.IsEnabled(LogLevel.Debug)) 606if (_logger.IsEnabled(LogLevel.Debug))
Microsoft.Extensions.DataIngestion (9)
Log.cs (9)
14[LoggerMessage(0, LogLevel.Information, "Starting to process files in directory '{directory}' with search pattern '{searchPattern}' and search option '{searchOption}'.")] 17[LoggerMessage(1, LogLevel.Information, "Processing {fileCount} files.")] 20[LoggerMessage(2, LogLevel.Information, "Reading file '{filePath}' using '{reader}'.")] 23[LoggerMessage(3, LogLevel.Information, "Read document '{documentId}'.")] 26[LoggerMessage(4, LogLevel.Information, "Writing chunks using {writer}.")] 29[LoggerMessage(5, LogLevel.Information, "Wrote chunks for document '{documentId}'.")] 32[LoggerMessage(6, LogLevel.Error, "An error occurred while ingesting document '{identifier}'.")] 35[LoggerMessage(7, LogLevel.Error, "The AI chat service returned {resultCount} instead of {expectedCount} results.")] 38[LoggerMessage(8, LogLevel.Error, "Unexpected enricher failure.")]
Microsoft.Extensions.DataIngestion.Tests (5)
Processors\AlternativeTextEnricherTests.cs (1)
179Assert.Equal(LogLevel.Error, record.Level);
Processors\ClassificationEnricherTests.cs (1)
116Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
Processors\KeywordEnricherTests.cs (1)
116Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
Processors\SentimentEnricherTests.cs (1)
103Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
Processors\SummaryEnricherTests.cs (1)
100Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
Microsoft.Extensions.Diagnostics.HealthChecks (41)
_generated\0\LoggerMessage.g.cs (26)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(100, "HealthCheckProcessingBegin"), "Running health checks", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "HealthCheckProcessingEnd"), "Health check processing with combined status {HealthStatus} completed after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "HealthCheckBegin"), "Running health check {HealthCheckName}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "HealthCheckEnd"), "Health check {HealthCheckName} with status {HealthStatus} completed after {ElapsedMilliseconds}ms with message '{HealthCheckDescription}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(103, "HealthCheckEnd"), "Health check {HealthCheckName} with status {HealthStatus} completed after {ElapsedMilliseconds}ms with message '{HealthCheckDescription}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(103, "HealthCheckEnd"), "Health check {HealthCheckName} with status {HealthStatus} completed after {ElapsedMilliseconds}ms with message '{HealthCheckDescription}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 108global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, double>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(104, "HealthCheckError"), "Health check {HealthCheckName} threw an unhandled exception after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 117if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 133global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(100, "HealthCheckPublisherProcessingBegin"), "Running health check publishers", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 142if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 149global::Microsoft.Extensions.Logging.LoggerMessage.Define<double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(101, "HealthCheckPublisherProcessingEnd"), "Health check publisher processing completed after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 158if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 165global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(102, "HealthCheckPublisherBegin"), "Running health check publisher '{HealthCheckPublisher}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 174if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 181global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(103, "HealthCheckPublisherEnd"), "Health check '{HealthCheckPublisher}' completed after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 190if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) 197global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(104, "HealthCheckPublisherError"), "Health check {HealthCheckPublisher} threw an unhandled exception after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 206if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 213global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(104, "HealthCheckPublisherTimeout"), "Health check {HealthCheckPublisher} was canceled after {ElapsedMilliseconds}ms", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 222if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
DefaultHealthCheckService.cs (9)
205[LoggerMessage(EventIds.HealthCheckProcessingBeginId, LogLevel.Debug, "Running health checks", EventName = EventIds.HealthCheckProcessingBeginName)] 211[LoggerMessage(EventIds.HealthCheckProcessingEndId, LogLevel.Debug, "Health check processing with combined status {HealthStatus} completed after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckProcessingEndName)] 214[LoggerMessage(EventIds.HealthCheckBeginId, LogLevel.Debug, "Running health check {HealthCheckName}", EventName = EventIds.HealthCheckBeginName)] 220[LoggerMessage(EventIds.HealthCheckEndId, LogLevel.Debug, HealthCheckEndText, EventName = EventIds.HealthCheckEndName)] 223[LoggerMessage(EventIds.HealthCheckEndId, LogLevel.Warning, HealthCheckEndText, EventName = EventIds.HealthCheckEndName)] 226[LoggerMessage(EventIds.HealthCheckEndId, LogLevel.Error, HealthCheckEndText, EventName = EventIds.HealthCheckEndName)] 247[LoggerMessage(EventIds.HealthCheckErrorId, LogLevel.Error, "Health check {HealthCheckName} threw an unhandled exception after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckErrorName)] 255if (entry.Data.Count > 0 && logger.IsEnabled(LogLevel.Debug)) 258LogLevel.Debug,
HealthCheckPublisherHostedService.cs (6)
252[LoggerMessage(EventIds.HealthCheckPublisherProcessingBeginId, LogLevel.Debug, "Running health check publishers", EventName = EventIds.HealthCheckPublisherProcessingBeginName)] 258[LoggerMessage(EventIds.HealthCheckPublisherProcessingEndId, LogLevel.Debug, "Health check publisher processing completed after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherProcessingEndName)] 261[LoggerMessage(EventIds.HealthCheckPublisherBeginId, LogLevel.Debug, "Running health check publisher '{HealthCheckPublisher}'", EventName = EventIds.HealthCheckPublisherBeginName)] 267[LoggerMessage(EventIds.HealthCheckPublisherEndId, LogLevel.Debug, "Health check '{HealthCheckPublisher}' completed after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherEndName)] 273[LoggerMessage(EventIds.HealthCheckPublisherErrorId, LogLevel.Error, "Health check {HealthCheckPublisher} threw an unhandled exception after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherErrorName)] 279[LoggerMessage(EventIds.HealthCheckPublisherTimeoutId, LogLevel.Error, "Health check {HealthCheckPublisher} was canceled after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherTimeoutName)]
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Log.cs (2)
11[LoggerMessage(0, LogLevel.Warning, "Process reporting unhealthy: {Status}. Health check entries are {Entries}")] 17[LoggerMessage(1, LogLevel.Debug, "Process reporting healthy: {Status}.")]
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (8)
TelemetryHealthChecksPublisherTests.cs (8)
23public static TheoryData<List<HealthStatus>, bool, int, string, LogLevel, string> PublishAsyncArgs => new() 30LogLevel.Debug, 38LogLevel.Warning, 46LogLevel.Warning, 54LogLevel.Debug, 62LogLevel.Warning, 71LogLevel.Warning, 83LogLevel expectedLogLevel,
Microsoft.Extensions.Diagnostics.Probes (1)
Log.cs (1)
11[LoggerMessage(LogLevel.Error, "Error updating health status through TCP endpoint")]
Microsoft.Extensions.Diagnostics.ResourceMonitoring (18)
Linux\Log.cs (7)
12[LoggerMessage(1, LogLevel.Debug, 22[LoggerMessage(2, LogLevel.Debug, 30[LoggerMessage(3, LogLevel.Debug, 39[LoggerMessage(4, LogLevel.Debug, 48[LoggerMessage(5, LogLevel.Warning, 54[LoggerMessage(6, LogLevel.Debug, 60[LoggerMessage(7, LogLevel.Debug,
Log.cs (3)
13[LoggerMessage(1, LogLevel.Error, "Unable to gather utilization statistics.")] 18[LoggerMessage(2, LogLevel.Error, "Publisher `{Publisher}` was unable to publish utilization statistics.")] 24[LoggerMessage(3, LogLevel.Debug,
Windows\Log.cs (8)
10[LoggerMessage(1, LogLevel.Information, "Resource Monitoring is running inside a Job Object. For more information about Job Objects see https://aka.ms/job-objects")] 13[LoggerMessage(2, LogLevel.Information, "Resource Monitoring is running outside of Job Object. For more information about Job Objects see https://aka.ms/job-objects")] 16[LoggerMessage(3, LogLevel.Debug, 26[LoggerMessage(4, LogLevel.Debug, 34[LoggerMessage(5, LogLevel.Debug, "Computed CPU usage with CpuUsageKernelTicks = {cpuUsageKernelTicks}, CpuUsageUserTicks = {cpuUsageUserTicks}, OldCpuUsageTicks = {oldCpuUsageTicks}, TimeTickDelta = {timeTickDelta}, CpuUnits = {cpuUnits}, CpuPercentage = {cpuPercentage}.")] 44[LoggerMessage(6, LogLevel.Debug, 53[LoggerMessage(7, LogLevel.Warning, 60[LoggerMessage(8, LogLevel.Debug,
Microsoft.Extensions.Diagnostics.Testing (15)
Logging\FakeLogCollectorOptions.cs (2)
34public ISet<LogLevel> FilteredLevels { get; set; } = new HashSet<LogLevel>();
Logging\FakeLogger.cs (4)
33private readonly ConcurrentDictionary<LogLevel, bool> _disabledLevels = new(); // used as a set, the value is ignored 74public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 91public void ControlLevel(LogLevel logLevel, bool enabled) => _ = enabled ? _disabledLevels.TryRemove(logLevel, out _) : _disabledLevels.TryAdd(logLevel, false); 98public bool IsEnabled(LogLevel logLevel) => !_disabledLevels.ContainsKey(logLevel);
Logging\FakeLogRecord.cs (9)
27public FakeLogRecord(LogLevel level, EventId id, object? state, Exception? exception, string message, IReadOnlyList<object?> scopes, string? category, bool enabled, DateTimeOffset timestamp) 43public LogLevel Level { get; } 135LogLevel.Debug => "debug", 136LogLevel.Information => " info", 137LogLevel.Warning => " warn", 138LogLevel.Error => "error", 139LogLevel.Critical => " crit", 140LogLevel.Trace => "trace", 141LogLevel.None => " none",
Microsoft.Extensions.Diagnostics.Testing.Tests (45)
Logging\FakeLogCollectorTests.cs (8)
61logger.Log(LogLevel.None, "Hello world!"); 64logger.Log((LogLevel)42, "Hello world!"); 103logger.Log(LogLevel.None, "Hello world!"); 106logger.Log((LogLevel)42, "Hello world!"); 142logger.Log(LogLevel.None, "Hello world!"); 145logger.Log((LogLevel)42, "Hello world!"); 174logger.Log(LogLevel.None, "Hello world!"); 177logger.Log((LogLevel)42, "Hello world!");
Logging\FakeLogCollectorTests.LogEnumeration.cs (1)
228logger.Log(LogLevel.Debug, log);
Logging\FakeLoggerTests.cs (35)
35Assert.Equal(LogLevel.Information, records[0].Level); 44Assert.Equal(LogLevel.Error, records[1].Level); 52Assert.Equal(LogLevel.Error, logger.LatestRecord.Level); 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"); 149Assert.True(logger.IsEnabled(LogLevel.Trace)); 150Assert.True(logger.IsEnabled(LogLevel.Debug)); 151Assert.True(logger.IsEnabled(LogLevel.Information)); 152Assert.True(logger.IsEnabled(LogLevel.Warning)); 153Assert.True(logger.IsEnabled(LogLevel.Error)); 154Assert.True(logger.IsEnabled(LogLevel.Critical)); 155Assert.True(logger.IsEnabled((LogLevel)42)); 157logger.ControlLevel(LogLevel.Debug, false); 158logger.ControlLevel((LogLevel)42, false); 160Assert.True(logger.IsEnabled(LogLevel.Trace)); 161Assert.False(logger.IsEnabled(LogLevel.Debug)); 162Assert.True(logger.IsEnabled(LogLevel.Information)); 163Assert.True(logger.IsEnabled(LogLevel.Warning)); 164Assert.True(logger.IsEnabled(LogLevel.Error)); 165Assert.True(logger.IsEnabled(LogLevel.Critical)); 166Assert.False(logger.IsEnabled((LogLevel)42)); 172logger.ControlLevel(LogLevel.Debug, true); 190logger.ControlLevel(LogLevel.Debug, false); 202FilteredLevels = new HashSet<LogLevel>() 204options.FilteredLevels.Add(LogLevel.Error); 298FilteredLevels = useErrorLevelFilter ? [LogLevel.Error] : new HashSet<LogLevel>(), 317IList<(string message, LogLevel level, string prefix)> expectationsInOrder = useErrorLevelFilter 318? [(NotIgnoredMessage2, LogLevel.Error, "error] ")] 319: [(NotIgnoredMessage1, LogLevel.Information, "info] "), (NotIgnoredMessage2, LogLevel.Error, "error] ")];
Logging\TestLog.cs (1)
10[LoggerMessage(0, LogLevel.Error, "Hello {name}")]
Microsoft.Extensions.Hosting (10)
HostingHostBuilderExtensions.cs (1)
300logging.AddFilter<EventLogLoggerProvider>(level => level >= LogLevel.Warning);
Internal\ConsoleLifetime.cs (1)
102if (Logger.IsEnabled(LogLevel.Information))
Internal\HostingLoggerExtensions.cs (8)
34if (logger.IsEnabled(LogLevel.Debug)) 44if (logger.IsEnabled(LogLevel.Debug)) 54if (logger.IsEnabled(LogLevel.Debug)) 64if (logger.IsEnabled(LogLevel.Debug)) 74if (logger.IsEnabled(LogLevel.Debug)) 85if (logger.IsEnabled(LogLevel.Error)) 96if (logger.IsEnabled(LogLevel.Critical)) 107if (logger.IsEnabled(LogLevel.Error))
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
95if (Logger.IsEnabled(LogLevel.Information))
Microsoft.Extensions.Hosting.Testing (2)
HostTerminatorService.cs (2)
63[LoggerMessage(0, LogLevel.Warning, "FakeHostOptions.TimeToLive set to {TimeToLive} is up, disposing the host.")] 66[LoggerMessage(1, LogLevel.Information, "Debugger is attached. The host won't be automatically disposed.")]
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
80if (Logger.IsEnabled(LogLevel.Information))
Microsoft.Extensions.Http (19)
DefaultHttpClientFactory.cs (4)
327LogLevel.Debug, 332LogLevel.Debug, 337LogLevel.Error, 342LogLevel.Debug,
Logging\LogHelper.cs (15)
36LogLevel.Information, 42LogLevel.Information, 47LogLevel.Information, 54LogLevel.Information, 59LogLevel.Information, 64LogLevel.Information, 71if (logger.IsEnabled(LogLevel.Information)) 76if (logger.IsEnabled(LogLevel.Trace)) 79LogLevel.Trace, 91if (logger.IsEnabled(LogLevel.Trace)) 94LogLevel.Trace, 115if (logger.IsEnabled(LogLevel.Trace)) 118LogLevel.Trace, 130if (logger.IsEnabled(LogLevel.Trace)) 133LogLevel.Trace,
Microsoft.Extensions.Http.Diagnostics (11)
Logging\Internal\HttpClientLogger.cs (4)
83Log.OutgoingRequest(_logger, LogLevel.Information, logRecord); 136private static LogLevel GetLogLevel(LogRecord logRecord) 144return LogLevel.Error; 147return LogLevel.Information;
Logging\Internal\Log.cs (7)
42public static void OutgoingRequest(ILogger logger, LogLevel level, LogRecord record) 49OutgoingRequest(logger, LogLevel.Error, 2, nameof(OutgoingRequestError), record, exception); 52[LoggerMessage(LogLevel.Error, RequestReadErrorMessage)] 60[LoggerMessage(LogLevel.Error, ResponseReadErrorMessage)] 68[LoggerMessage(LogLevel.Error, LoggerContextMissingMessage)] 76[LoggerMessage(LogLevel.Error, EnrichmentErrorMessage)] 87ILogger logger, LogLevel level, int eventId, string eventName, LogRecord record, Exception? exception = null)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (3)
DropMessageLogger.cs (3)
11internal static readonly Func<LogLevel, EventId, object, Exception, object?> CreateLogRecord 21public bool IsEnabled(LogLevel logLevel) => true; 23public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Logging\AcceptanceTests.cs (3)
45Assert.Equal(LogLevel.Information, logRecord.Level); 77Assert.Equal(LogLevel.Error, firstLogRecord.Level); 86Assert.Equal(LogLevel.Information, secondLogRecord.Level);
Logging\HttpClientLoggerTest.cs (8)
944[InlineData(399, LogLevel.Information)] 945[InlineData(400, LogLevel.Error)] 946[InlineData(499, LogLevel.Error)] 947[InlineData(500, LogLevel.Error)] 948[InlineData(599, LogLevel.Error)] 949[InlineData(600, LogLevel.Information)] 951int httpStatusCode, LogLevel expectedLogLevel) 996Assert.Equal(LogLevel.Error, logRecord.Level);
Microsoft.Extensions.Identity.Core (6)
RoleManager.cs (1)
411if (Logger.IsEnabled(LogLevel.Warning))
UserManager.cs (5)
1413if (Logger.IsEnabled(LogLevel.Debug)) 1422if (Logger.IsEnabled(LogLevel.Debug)) 1888if (!result && Logger.IsEnabled(LogLevel.Debug)) 2926if (Logger.IsEnabled(LogLevel.Debug)) 2962if (Logger.IsEnabled(LogLevel.Debug))
Microsoft.Extensions.Localization (3)
_generated\0\LoggerMessage.g.cs (2)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string, global::System.Globalization.CultureInfo>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "SearchedLocation"), "ResourceManagerStringLocalizer searched for '{Key}' in '{LocationSearched}' with culture '{Culture}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
ResourceManagerStringLocalizer.cs (1)
222[LoggerMessage(1, LogLevel.Debug, $"{nameof(ResourceManagerStringLocalizer)} searched for '{{Key}}' in '{{LocationSearched}}' with culture '{{Culture}}'.", EventName = "SearchedLocation")]
Microsoft.Extensions.Logging (83)
DefaultLoggerLevelConfigureOptions.cs (1)
10public DefaultLoggerLevelConfigureOptions(LogLevel level) : base(options => options.MinLevel = level)
FilterLoggingBuilderExtensions.cs (34)
25/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 29public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, string?, LogLevel, bool> filter) => 42/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 46public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) => 60/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 64public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider => 76/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 80public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) => 93/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 97public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 107public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) => 118public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, LogLevel level) where T : ILoggerProvider => 131/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 135public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) => 149/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 153public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 167/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 171public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<string?, string?, LogLevel, bool> filter) => 184/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 188public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<string?, LogLevel, bool> categoryLevelFilter) => 202/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 206public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider => 218/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 222public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<LogLevel, bool> levelFilter) => 235/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 239public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 249public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) => 260public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, LogLevel level) where T : ILoggerProvider => 273/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 277public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, Func<LogLevel, bool> levelFilter) => 291/// <item><description>The <see cref="LogLevel"/> of the log message.</description></item> 295public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 307LogLevel? level = null, 308Func<string?, string?, LogLevel, bool>? filter = null)
Logger.cs (17)
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) 66public bool IsEnabled(LogLevel logLevel) 97static bool LoggerIsEnabled(LogLevel logLevel, ILogger logger, ref List<Exception>? exceptions) 224public LogLevel? MinLevel => DebuggerDisplayFormatting.CalculateEnabledLogLevel(logger); 232public LogLevel LogLevel => CalculateEnabledLogLevel(messageLogger) ?? LogLevel.None; 234private static LogLevel? CalculateEnabledLogLevel(MessageLogger? logger) 241ReadOnlySpan<LogLevel> logLevels = 243LogLevel.Critical, 244LogLevel.Error, 245LogLevel.Warning, 246LogLevel.Information, 247LogLevel.Debug, 248LogLevel.Trace, 251LogLevel? minimumLevel = null; 254foreach (LogLevel logLevel in logLevels)
LoggerFactory.cs (3)
240out LogLevel? minLevel, 241out Func<string?, string?, LogLevel, bool>? filter); 243if (minLevel is not null and > LogLevel.Critical)
LoggerFilterOptions.cs (2)
31public LogLevel MinLevel { get; set; } 44if (MinLevel != LogLevel.None)
LoggerFilterRule.cs (4)
20public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, Func<string?, string?, LogLevel, bool>? filter) 41public LogLevel? LogLevel { get; } 46public Func<string?, string?, LogLevel, bool>? Filter { get; }
LoggerInformation.cs (5)
11public MessageLogger(ILogger logger, string category, string? providerTypeFullName, LogLevel? minLevel, Func<string?, string?, LogLevel, bool>? filter) 26public LogLevel? MinLevel { get; } 28public Func<string?, string?, LogLevel, bool>? Filter { get; } 30public bool IsEnabled(LogLevel level)
LoggerRuleSelector.cs (2)
10public static void Select(LoggerFilterOptions options, Type providerType, string category, out LogLevel? minLevel, out Func<string?, string?, LogLevel, bool>? filter)
LoggingBuilderExtensions.cs (3)
17/// Sets a minimum <see cref="LogLevel"/> requirement for log messages to be logged. 20/// <param name="level">The <see cref="LogLevel"/> to set as the minimum.</param> 22public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level)
LoggingServiceCollectionExtensions.cs (1)
42new DefaultLoggerLevelConfigureOptions(LogLevel.Information)));
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (11)
12LogLevel? minimumLevel = CalculateEnabledLogLevel(logger); 32internal static LogLevel? CalculateEnabledLogLevel(ILogger logger) 34ReadOnlySpan<LogLevel> logLevels = 36LogLevel.Critical, 37LogLevel.Error, 38LogLevel.Warning, 39LogLevel.Information, 40LogLevel.Debug, 41LogLevel.Trace, 44LogLevel? minimumLevel = null; 47foreach (LogLevel logLevel in logLevels)
Microsoft.Extensions.Logging.Abstractions (85)
BufferedLogRecord.cs (1)
28public abstract LogLevel LogLevel { get; }
ILogger.cs (2)
23void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter); 30bool IsEnabled(LogLevel logLevel);
LogDefineOptions.cs (1)
9/// Options for <see cref="LoggerMessage.Define(LogLevel, EventId, string)"/> and its overloads.
LogEntry.cs (2)
22public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 35public LogLevel LogLevel { get; }
LoggerExtensions.cs (28)
32logger.Log(LogLevel.Debug, eventId, exception, message, args); 49logger.Log(LogLevel.Debug, eventId, message, args); 66logger.Log(LogLevel.Debug, exception, message, args); 82logger.Log(LogLevel.Debug, message, args); 102logger.Log(LogLevel.Trace, eventId, exception, message, args); 119logger.Log(LogLevel.Trace, eventId, message, args); 136logger.Log(LogLevel.Trace, exception, message, args); 152logger.Log(LogLevel.Trace, message, args); 172logger.Log(LogLevel.Information, eventId, exception, message, args); 189logger.Log(LogLevel.Information, eventId, message, args); 206logger.Log(LogLevel.Information, exception, message, args); 222logger.Log(LogLevel.Information, message, args); 242logger.Log(LogLevel.Warning, eventId, exception, message, args); 259logger.Log(LogLevel.Warning, eventId, message, args); 276logger.Log(LogLevel.Warning, exception, message, args); 292logger.Log(LogLevel.Warning, message, args); 312logger.Log(LogLevel.Error, eventId, exception, message, args); 329logger.Log(LogLevel.Error, eventId, message, args); 346logger.Log(LogLevel.Error, exception, message, args); 362logger.Log(LogLevel.Error, message, args); 382logger.Log(LogLevel.Critical, eventId, exception, message, args); 399logger.Log(LogLevel.Critical, eventId, message, args); 416logger.Log(LogLevel.Critical, exception, message, args); 432logger.Log(LogLevel.Critical, message, args); 442public static void Log(this ILogger logger, LogLevel logLevel, string? message, params object?[] args) 455public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args) 468public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, 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 (28)
126/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 130public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString) 136/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 141public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 168/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 172public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString) 179/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 184public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 212/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 216public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString) 224/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 229public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 258/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 262public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString) 271/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 276public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 306/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 310public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString) 320/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 325public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 356/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 360public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString) 371/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 376public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 408/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 412public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString) 424/// <param name="logLevel">The <see cref="LogLevel"/>.</param> 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)
LoggerMessageAttribute.cs (6)
17/// <para> - Must have a <see cref="Microsoft.Extensions.Logging.LogLevel"/> as one of its parameters.</para> 47public LoggerMessageAttribute(int eventId, LogLevel level, string message) 60public LoggerMessageAttribute(LogLevel level, string message) 71public LoggerMessageAttribute(LogLevel level) 102public LogLevel Level { get; set; } = LogLevel.None;
LoggerT.cs (2)
39bool ILogger.IsEnabled(LogLevel logLevel) 45void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLogger.cs (2)
32public bool IsEnabled(LogLevel logLevel) 38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLoggerT.cs (2)
30LogLevel logLevel, 39public bool IsEnabled(LogLevel logLevel)
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (11)
12LogLevel? minimumLevel = CalculateEnabledLogLevel(logger); 32internal static LogLevel? CalculateEnabledLogLevel(ILogger logger) 34ReadOnlySpan<LogLevel> logLevels = 36LogLevel.Critical, 37LogLevel.Error, 38LogLevel.Warning, 39LogLevel.Information, 40LogLevel.Debug, 41LogLevel.Trace, 44LogLevel? minimumLevel = null; 47foreach (LogLevel logLevel in logLevels)
Microsoft.Extensions.Logging.Configuration (3)
LoggerFilterConfigureOptions.cs (3)
59if (TryGetSwitch(section.Value, out LogLevel level)) 72private static bool TryGetSwitch(string? value, out LogLevel level) 76level = LogLevel.None;
Microsoft.Extensions.Logging.Console (52)
_generated\0\BindingExtensions.g.cs (1)
206instance.LogToStandardErrorThreshold = ParseEnum<global::Microsoft.Extensions.Logging.LogLevel>(value7, configuration.GetSection("LogToStandardErrorThreshold").Path);
ConfigurationConsoleLoggerSettings.cs (4)
77public bool TryGetSwitch(string name, out LogLevel level) 82level = LogLevel.None; 89level = LogLevel.None; 92else if (Enum.TryParse<LogLevel>(value, true, out level))
ConsoleLogger.cs (3)
46public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 103public bool IsEnabled(LogLevel logLevel) 105return logLevel != LogLevel.None;
ConsoleLoggerExtensions.Obsolete.cs (6)
53public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Logging.LogLevel minLevel, bool includeScopes) 55factory.AddConsole((n, l) => l >= LogLevel.Information, includeScopes); 67public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Logging.LogLevel minLevel) 83factory.AddConsole((n, l) => l >= LogLevel.Information, includeScopes); 96public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, System.Func<string, Logging.LogLevel, bool> filter, bool includeScopes) 110public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, System.Func<string, Logging.LogLevel, bool> filter)
ConsoleLoggerOptions.cs (2)
65public LogLevel LogToStandardErrorThreshold { get; set; } = LogLevel.None;
ConsoleLoggerSettings.cs (3)
32public IDictionary<string, LogLevel> Switches { get; set; } = new Dictionary<string, LogLevel>(); 41public bool TryGetSwitch(string name, out LogLevel level)
IConsoleLoggerSettings.cs (1)
33bool TryGetSwitch(string name, out LogLevel level);
JsonConsoleFormatter.cs (8)
55private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string? message, LogLevel logLevel, 119private static string GetLogLevelString(LogLevel logLevel) 123LogLevel.Trace => "Trace", 124LogLevel.Debug => "Debug", 125LogLevel.Information => "Information", 126LogLevel.Warning => "Warning", 127LogLevel.Error => "Error", 128LogLevel.Critical => "Critical",
SimpleConsoleFormatter.cs (16)
16private static readonly string _messagePadding = new string(' ', GetLogLevelString(LogLevel.Information).Length + LoglevelPadding.Length); 68private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string message, LogLevel logLevel, 163private static string GetLogLevelString(LogLevel logLevel) 167LogLevel.Trace => "trce", 168LogLevel.Debug => "dbug", 169LogLevel.Information => "info", 170LogLevel.Warning => "warn", 171LogLevel.Error => "fail", 172LogLevel.Critical => "crit", 177private ConsoleColors GetLogLevelConsoleColors(LogLevel logLevel) 191LogLevel.Trace => new ConsoleColors(ConsoleColor.Gray, ConsoleColor.Black), 192LogLevel.Debug => new ConsoleColors(ConsoleColor.Gray, ConsoleColor.Black), 193LogLevel.Information => new ConsoleColors(ConsoleColor.DarkGreen, ConsoleColor.Black), 194LogLevel.Warning => new ConsoleColors(ConsoleColor.Yellow, ConsoleColor.Black), 195LogLevel.Error => new ConsoleColors(ConsoleColor.Black, ConsoleColor.DarkRed), 196LogLevel.Critical => new ConsoleColors(ConsoleColor.White, ConsoleColor.DarkRed),
SystemdConsoleFormatter.cs (8)
58private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string message, LogLevel logLevel, string category, 120private static string GetSyslogSeverityString(LogLevel logLevel) 125LogLevel.Trace => "<7>", 126LogLevel.Debug => "<7>", // debug-level messages 127LogLevel.Information => "<6>", // informational messages 128LogLevel.Warning => "<4>", // warning conditions 129LogLevel.Error => "<3>", // error conditions 130LogLevel.Critical => "<2>", // critical conditions
Microsoft.Extensions.Logging.Debug (7)
DebugLogger.cs (3)
32public bool IsEnabled(LogLevel logLevel) 35return Debugger.IsAttached && logLevel != LogLevel.None; 39public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
DebugLoggerFactoryExtensions.cs (4)
18/// Adds a debug logger that is enabled for <see cref="LogLevel"/>.Information or higher. 21/// <param name="minLevel">The minimum <see cref="LogLevel"/> to be logged. This parameter is no longer honored and will be ignored.</param> 24public static ILoggerFactory AddDebug(this ILoggerFactory factory, LogLevel minLevel) => AddDebug(factory); 33public static ILoggerFactory AddDebug(this ILoggerFactory factory, Func<string, LogLevel, bool> filter) => AddDebug(factory);
Microsoft.Extensions.Logging.EventLog (16)
EventLoggerFactoryExtensions.cs (5)
36/// Adds an event logger that is enabled for <see cref="LogLevel"/>s of minLevel or higher. 39/// <param name="minLevel">The minimum <see cref="LogLevel"/> to be logged.</param> 42public static ILoggerFactory AddEventLog(this ILoggerFactory factory, LogLevel minLevel) => 46/// Adds an event logger that is enabled for <see cref="LogLevel"/>.Information or higher. 51public static ILoggerFactory AddEventLog(this ILoggerFactory factory) => AddEventLog(factory, LogLevel.Information);
EventLogLogger.cs (10)
63public bool IsEnabled(LogLevel logLevel) 65return logLevel != LogLevel.None && 71LogLevel logLevel, 185private static EventLogEntryType GetEventLogEntryType(LogLevel level) 189case LogLevel.Information: 190case LogLevel.Debug: 191case LogLevel.Trace: 193case LogLevel.Warning: 195case LogLevel.Critical: 196case LogLevel.Error:
EventLogSettings.cs (1)
31public Func<string, LogLevel, bool>? Filter { get; set; }
Microsoft.Extensions.Logging.EventSource (34)
EventSourceLogger.cs (6)
43Level = LogLevel.Trace; 52public LogLevel Level { get; set; } 57public bool IsEnabled(LogLevel logLevel) 59return logLevel != LogLevel.None && logLevel >= Level; 63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 172if (!IsEnabled(LogLevel.Critical))
EventSourceLoggerProvider.cs (1)
62logger.Level = LogLevel.None;
LoggingEventSource.cs (27)
41/// <c>LEVEL</c> is a number or a <see cref="LogLevel"/> string (0=Trace, 1=Debug, 2=Information, 3=Warning, 4=Error, Critical=5). This specifies the level for the associated pattern. If the number isn't specified (first form of the specification), it's the default level for the EventSource. 153LogLevel Level, 205LogLevel Level, 269LogLevel Level, 424private static LoggerFilterRule[] ParseFilterSpec(string? filterSpec, LogLevel defaultLevel) 434return new[] { new LoggerFilterRule(typeof(EventSourceLoggerProvider).FullName, null, LogLevel.None, null) }; 447rules.Add(new LoggerFilterRule(typeof(EventSourceLoggerProvider).FullName, null, LogLevel.None, null)); 453LogLevel level = defaultLevel; 487private static bool TryParseLevel(LogLevel defaultLevel, string levelString, out LogLevel ret) 502ret = LogLevel.Trace; 505ret = LogLevel.Debug; 508ret = LogLevel.Information; 511ret = LogLevel.Warning; 514ret = LogLevel.Error; 517ret = LogLevel.Critical; 524if (!(LogLevel.Trace <= (LogLevel)level && (LogLevel)level <= LogLevel.None)) 528ret = (LogLevel)level; 535private LogLevel GetDefaultLevel() 541return LogLevel.Debug; 546return LogLevel.Information; 551return LogLevel.Warning; 556return LogLevel.Error; 559return LogLevel.Critical;
Microsoft.Extensions.Logging.MSBuild (16)
MSBuildLogger.cs (16)
50public bool IsEnabled(LogLevel logLevel) => 53LogLevel.Trace => _loggingHelper.LogsMessagesOfImportance(MessageImportance.Low), 54LogLevel.Debug => _loggingHelper.LogsMessagesOfImportance(MessageImportance.Normal), 55LogLevel.Information => _loggingHelper.LogsMessagesOfImportance(MessageImportance.High), 56LogLevel.Warning or LogLevel.Error or LogLevel.Critical => true, 57LogLevel.None => false, 61public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 66case LogLevel.Trace: 69case LogLevel.Debug: 72case LogLevel.Information: 75case LogLevel.Warning: 78case LogLevel.Error: 79case LogLevel.Critical: 82case LogLevel.None:
Microsoft.Extensions.Logging.TraceSource (9)
TraceSourceLogger.cs (9)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 57public bool IsEnabled(LogLevel logLevel) 59if (logLevel == LogLevel.None) 68private static TraceEventType GetEventType(LogLevel logLevel) 72case LogLevel.Critical: return TraceEventType.Critical; 73case LogLevel.Error: return TraceEventType.Error; 74case LogLevel.Warning: return TraceEventType.Warning; 75case LogLevel.Information: return TraceEventType.Information; 76case LogLevel.Trace:
Microsoft.Extensions.ML (8)
ModelLoaders\FileModelLoader.cs (4)
160LogLevel.Debug, 165LogLevel.Debug, 170LogLevel.Error, 175LogLevel.Information,
ModelLoaders\UriModelLoader.cs (4)
194LogLevel.Debug, 199LogLevel.Debug, 204LogLevel.Error, 209LogLevel.Error,
Microsoft.Extensions.ServiceDiscovery (14)
Configuration\ConfigurationServiceEndpointProvider.Log.cs (6)
13[LoggerMessage(1, LogLevel.Debug, "Skipping endpoint resolution for service '{ServiceName}': '{Reason}'.", EventName = "SkippedResolution")] 16[LoggerMessage(2, LogLevel.Debug, "Using configuration from path '{Path}' to resolve endpoint '{EndpointName}' for service '{ServiceName}'.", EventName = "UsingConfigurationPath")] 19[LoggerMessage(3, LogLevel.Debug, "No valid endpoint configuration was found for service '{ServiceName}' from path '{Path}'.", EventName = "ServiceConfigurationNotFound")] 22[LoggerMessage(4, LogLevel.Debug, "Endpoints configured for service '{ServiceName}' from path '{Path}': {ConfiguredEndpoints}.", EventName = "ConfiguredEndpoints")] 27if (!logger.IsEnabled(LogLevel.Debug)) 47[LoggerMessage(5, LogLevel.Debug, "No valid endpoint configuration was found for endpoint '{EndpointName}' on service '{ServiceName}' from path '{Path}'.", EventName = "EndpointConfigurationNotFound")]
PassThrough\PassThroughServiceEndpointProvider.Log.cs (1)
12[LoggerMessage(1, LogLevel.Debug, "Using pass-through service endpoint provider for service '{ServiceName}'.", EventName = "UsingPassThrough")]
ServiceEndpointWatcher.Log.cs (5)
12[LoggerMessage(1, LogLevel.Debug, "Resolving endpoints for service '{ServiceName}'.", EventName = "ResolvingEndpoints")] 15[LoggerMessage(2, LogLevel.Debug, "Endpoint resolution is pending for service '{ServiceName}'.", EventName = "ResolutionPending")] 18[LoggerMessage(3, LogLevel.Debug, "Resolved {Count} endpoints for service '{ServiceName}': {Endpoints}.", EventName = "ResolutionSucceeded")] 23if (logger.IsEnabled(LogLevel.Debug)) 39[LoggerMessage(4, LogLevel.Error, "Error resolving endpoints for service '{ServiceName}'.", EventName = "ResolutionFailed")]
ServiceEndpointWatcherFactory.Log.cs (2)
12[LoggerMessage(1, LogLevel.Debug, "Creating endpoint resolver for service '{ServiceName}' with {Count} providers: {Providers}.", EventName = "CreatingResolver")] 17if (logger.IsEnabled(LogLevel.Debug))
Microsoft.Extensions.ServiceDiscovery.Dns (14)
DnsServiceEndpointProviderBase.Log.cs (5)
12[LoggerMessage(1, LogLevel.Trace, "Resolving endpoints for service '{ServiceName}' using DNS SRV lookup for name '{RecordName}'.", EventName = "SrvQuery")] 15[LoggerMessage(2, LogLevel.Trace, "Resolving endpoints for service '{ServiceName}' using host lookup for name '{RecordName}'.", EventName = "AddressQuery")] 18[LoggerMessage(3, LogLevel.Debug, "Skipping endpoint resolution for service '{ServiceName}': '{Reason}'.", EventName = "SkippedResolution")] 21[LoggerMessage(4, LogLevel.Debug, "Service name '{ServiceName}' is not a valid URI or DNS name.", EventName = "ServiceNameIsNotUriOrDnsName")] 24[LoggerMessage(5, LogLevel.Debug, "DNS SRV query cannot be constructed for service name '{ServiceName}' because no DNS namespace was configured or detected.", EventName = "NoDnsSuffixFound")]
Resolver\DnsResolver.Log.cs (9)
12[LoggerMessage(1, LogLevel.Debug, "Resolving {QueryType} {QueryName} on {Server} attempt {Attempt}", EventName = "Query")] 15[LoggerMessage(2, LogLevel.Debug, "Result truncated for {QueryType} {QueryName} from {Server} attempt {Attempt}. Restarting over TCP", EventName = "ResultTruncated")] 18[LoggerMessage(3, LogLevel.Error, "Server {Server} replied with {ResponseCode} when querying {QueryType} {QueryName}", EventName = "ErrorResponseCode")] 21[LoggerMessage(4, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} timed out.", EventName = "Timeout")] 24[LoggerMessage(5, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt}: no data matching given query type.", EventName = "NoData")] 27[LoggerMessage(6, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt}: server indicates given name does not exist.", EventName = "NameError")] 30[LoggerMessage(7, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} failed to return a valid DNS response.", EventName = "MalformedResponse")] 33[LoggerMessage(8, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} failed due to a network error.", EventName = "NetworkError")] 36[LoggerMessage(9, LogLevel.Error, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} failed.", EventName = "QueryError")]
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (8)
XunitLoggerFactoryExtensions.cs (8)
31private readonly LogLevel _minLevel; 35: this(output, LogLevel.Trace) 39public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel) 44public XunitLoggerProvider(ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart) 65private readonly LogLevel _minLogLevel; 69public XunitLogger(ITestOutputHelper output, string category, LogLevel minLogLevel, DateTimeOffset? logStart) 78LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 132public bool IsEnabled(LogLevel logLevel)
Microsoft.Extensions.Telemetry (27)
Logging\ExtendedLogger.cs (4)
52public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 101public bool IsEnabled(LogLevel logLevel) 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)
Logging\ExtendedLoggerFactory.cs (3)
249out LogLevel? minLevel, 250out Func<string?, string?, LogLevel, bool>? filter); 252if (minLevel is > LogLevel.Critical)
Logging\Import\LoggerInformation.cs (7)
17public MessageLogger(ILogger logger, string category, string? providerTypeFullName, LogLevel? minLevel, Func<string?, string?, LogLevel, bool>? filter) 30public Func<LogLevel, bool> LoggerIsEnabled { get; } 32public Action<LogLevel, EventId, ExtendedLogger.ModernTagJoiner, Exception?, Func<ExtendedLogger.ModernTagJoiner, Exception?, string>> LoggerLog { get; } 40public LogLevel? MinLevel { get; } 42public Func<string?, string?, LogLevel, bool>? Filter { get; } 44public bool IsNotFilteredOut(LogLevel level)
Logging\Import\LoggerRuleSelector.cs (2)
14public static void Select(LoggerFilterOptions options, Type providerType, string category, out LogLevel? minLevel, out Func<string?, string?, LogLevel, bool>? filter)
Sampling\ILogSamplingFilterRule.cs (1)
21LogLevel? LogLevel { get; }
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)
Sampling\LogSamplingRuleSelectorExtensions.cs (1)
11public static T? GetBestMatchFor<T>(this IList<T> rules, string category, LogLevel logLevel, EventId eventId)
Sampling\RandomProbabilisticSamplerFilterRule.cs (2)
25LogLevel? logLevel = null, 46public LogLevel? LogLevel { get; }
Sampling\SamplingLoggerBuilderExtensions.cs (1)
104public static ILoggingBuilder AddRandomProbabilisticSampler(this ILoggingBuilder builder, double probability, LogLevel? level = null)
src\Shared\LogBuffering\SerializedLogRecord.cs (2)
31LogLevel logLevel, 51public LogLevel LogLevel { get; }
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
21LogLevel logLevel,
Microsoft.Extensions.Telemetry.PerformanceTests (10)
BenchLogger.cs (2)
33public bool IsEnabled(LogLevel logLevel) => true; 35public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
ClassicCodeGen.cs (4)
19global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(2037881459, nameof(RefTypes)), "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 23if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 30global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(558429541, nameof(ValueTypes)), "Range [{start}..{end}], options {options}, guid {guid}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 34if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
ExtendedLoggerBench.cs (2)
29LogLevel.Error, 34LogLevel.Error,
ModernCodeGen.cs (2)
28global::Microsoft.Extensions.Logging.LogLevel.Error, 61global::Microsoft.Extensions.Logging.LogLevel.Error,
Microsoft.Extensions.Telemetry.Tests (143)
Buffering\GlobalBufferLoggerBuilderExtensionsTests.cs (7)
23builder.AddGlobalBuffer(LogLevel.Warning); 39Assert.Throws<ArgumentNullException>(() => builder!.AddGlobalBuffer(LogLevel.Warning)); 48new ("Program.MyLogger", LogLevel.Information, 1, "number one", [new("region", "westus2"), new ("priority", 1)]), 49new (logLevel: LogLevel.Information), 78new(categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 79new(logLevel : LogLevel.Information), 83new(logLevel: LogLevel.Information),
Buffering\GlobalLogBufferingConfigureOptionsTests.cs (3)
93Assert.Equal(LogLevel.Information, options.Rules[0].LogLevel); 121Assert.Equal(LogLevel.Warning, options.Rules[0].LogLevel); 123Assert.Equal(LogLevel.Error, options.Rules[1].LogLevel);
Buffering\LogBufferingFilterRuleTests.cs (33)
23new LogBufferingFilterRule(logLevel: LogLevel.Information, eventId: 1), 24new LogBufferingFilterRule(logLevel: LogLevel.Information, eventId: 1), 25new LogBufferingFilterRule(logLevel: LogLevel.Warning), 26new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 2), 27new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 28new LogBufferingFilterRule("Program1.MyLogger", LogLevel.Warning, 1), 29new LogBufferingFilterRule("Program.*MyLogger1", LogLevel.Warning, 1), 30new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes: [new("region2", "westus2")]), // inapplicable key 31new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus3")]), // inapplicable value 32new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // the best rule - [11] 33new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 2), 35new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 36new LogBufferingFilterRule("Program", LogLevel.Warning, 1), 37new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning), 38new LogBufferingFilterRule("Program.MyLogger", LogLevel.Error, 1), 45LogLevel.Warning, 59new LogBufferingFilterRule(logLevel: LogLevel.Information, eventId: 1), 60new LogBufferingFilterRule(logLevel: LogLevel.Information, eventId: 1), 61new LogBufferingFilterRule(logLevel: LogLevel.Warning), 62new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 2), 63new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 64new LogBufferingFilterRule("Program1.MyLogger", LogLevel.Warning, 1), 65new LogBufferingFilterRule("Program.*MyLogger1", LogLevel.Warning, 1), 66new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1), 67new LogBufferingFilterRule("Program.MyLogger*", LogLevel.Warning, 1), 68new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // the best rule 69new LogBufferingFilterRule("Program.MyLogger*", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // same as the best, but last and should be selected 74LogBufferingFilterRule? result = _selector.Select(categorySpecificRules, LogLevel.Warning, 1, [new("region", "westus2")]); 86new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 1)]), 87new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 2)]), // the best rule 88new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 3)]), 89new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1), 94LogBufferingFilterRule? result = _selector.Select(categorySpecificRules, LogLevel.Warning, 1, [new("priority", "2")]);
Logging\ExtendedLoggerFactoryTests.cs (4)
569public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 575public bool IsEnabled(LogLevel logLevel) 607public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 617public bool IsEnabled(LogLevel logLevel)
Logging\ExtendedLoggerTests.cs (35)
73logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 133options.Rules.Add(new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning)); 142builder.AddRandomProbabilisticSampler(0, LogLevel.Warning); 154logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 190logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 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"); 315logger.Log(LogLevel.Warning, new EventId(0, "ID0"), e, null, (_, _) => "MSG0"); 355Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 356Assert.True(unfilteredLogger.IsEnabled(LogLevel.Warning)); 359fake.ControlLevel(LogLevel.Warning, false); 361Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 362Assert.False(unfilteredLogger.IsEnabled(LogLevel.Warning)); 384logger.Log(LogLevel.Warning, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0"); 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"); 684builder.AddFilter(null, LogLevel.None); 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"); 931builder.AddGlobalBuffer(LogLevel.Warning); 936logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2"); 959builder.AddGlobalBuffer(LogLevel.Warning); 968logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2"); 995options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Warning)); 1078public bool IsEnabled(LogLevel logLevel) 1089LogLevel logLevel, 1155public bool IsEnabled(LogLevel logLevel) => true; 1156public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) => _provider.State = state?.ToString();
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");
Sampling\LogSamplingRuleSelectorTests.cs (38)
24new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel: LogLevel.Information, eventId: 1 ), 25new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel: LogLevel.Information, eventId: 1 ), 26new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel: LogLevel.Warning), 27new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel : LogLevel.Warning, eventId : 2), 28new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel : LogLevel.Warning, eventId : 1), 29new RandomProbabilisticSamplerFilterRule (probability: 0, categoryName: "Program1.MyLogger", logLevel: LogLevel.Warning, eventId: 1), 30new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.*MyLogger1", logLevel : LogLevel.Warning, eventId : 1), 31new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 1), // the best rule 32new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 2), 34new RandomProbabilisticSamplerFilterRule (probability : 0, logLevel : LogLevel.Warning, eventId : 1), 35new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program", logLevel : LogLevel.Warning, eventId : 1), 36new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning), 37new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Error, eventId : 1), 41RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "Program.MyLogger", LogLevel.Warning, 1); 53new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Information, eventId : 1), 54new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Information, eventId : 1), 55new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning), 56new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Warning, eventId : 2), 57new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Warning, eventId : 1), 58new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program1.MyLogger", logLevel : LogLevel.Warning, eventId : 1), 59new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program.*MyLogger1", logLevel : LogLevel.Warning, eventId : 1), 60new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 1), // the best rule 61new RandomProbabilisticSamplerFilterRule(probability: 0, categoryName: "Program.MyLogger*", logLevel: LogLevel.Warning, eventId: 1), // same as the best, but last, and should be selected 65RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "Program.MyLogger", LogLevel.Warning, 1); 77new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Information), 78new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning), // the best rule 79new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Error), 83RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 0); 101RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Information, 2); 113new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Information, eventId: 1), 114new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning, eventId: 2), // the best rule 115new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Error, eventId: 3), 119RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 2); 137RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "Program.MyLogger", LogLevel.Information, 0); 154RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Information, 0); 166new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Error), // the best rule 167new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Critical), 171RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 0);
Sampling\RandomProbabilisticSamplerTests.cs (6)
28options.Rules.Add(new RandomProbabilisticSamplerFilterRule(probability: probability, logLevel: LogLevel.Trace)); 34LogLevel.Trace, nameof(SamplesAsConfigured), 0, _dummyState, _dummyException, _dummyFormatter)); 46LogLevel.Warning, nameof(WhenParametersNotMatch_AlwaysSamples), 0, _dummyState, _dummyException, _dummyFormatter); 48options.Rules.Add(new RandomProbabilisticSamplerFilterRule(probability: Probability, logLevel: LogLevel.Information)); 64LogLevel.Information, nameof(WhenParametersMatch_UsesProvidedProbability), 0, _dummyState, _dummyException, _dummyFormatter); 66options.Rules.Add(new RandomProbabilisticSamplerFilterRule(probability: Probability, logLevel: LogLevel.Information));
Sampling\SamplingLoggerBuilderExtensionsTests.cs (12)
57new RandomProbabilisticSamplerFilterRule (probability: 1.0, categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 58new RandomProbabilisticSamplerFilterRule (probability : 0.01, logLevel : LogLevel.Information), 59new RandomProbabilisticSamplerFilterRule (probability : 0.1, logLevel : LogLevel.Warning) 81new(probability: 1.0, categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 82new(probability : 0.01, logLevel : LogLevel.Information), 83new(probability : 0.1, logLevel : LogLevel.Warning) 87new(probability: 0, logLevel: LogLevel.Information), 88new(probability : 0, logLevel : LogLevel.Information), 89new(probability : 0, logLevel : LogLevel.Warning) 214new RandomProbabilisticSamplerFilterRule (probability: 1.0, categoryName: "Program.MyLogger", logLevel: LogLevel.Information, eventId: 1, eventName: "number one"), 215new RandomProbabilisticSamplerFilterRule (probability : 0.01, logLevel : LogLevel.Information), 216new RandomProbabilisticSamplerFilterRule (probability : 0.1, logLevel : LogLevel.Warning)
Sampling\TraceBasedSamplerTests.cs (3)
29LogLevel.Trace, nameof(WhenNoActivity_SamplesIn), 0, _dummyState, _dummyException, _dummyFormatter)); 48LogLevel.Trace, nameof(WhenActivityIsRecorded_SamplesIn), 0, _dummyState, _dummyException, _dummyFormatter)); 69LogLevel.Trace, nameof(WhenActivityIsNotRecorded_SamplesOut), 0, _dummyState, _dummyException, _dummyFormatter));
Microsoft.Gen.Logging.Generated.Tests (361)
LoggerMessageAttributeTests.cs (7)
122AttributeTestExtensions.M6(logger, LogLevel.Critical, "arg0", "arg1"); 123AssertWhenDefaultLogMethodCtor(collector, LogLevel.Critical, ("p0", "----"), ("p1", "arg1")); 126AttributeTestExtensions.M7(logger, LogLevel.Warning, "arg_0", "arg_1"); 127AssertWhenDefaultLogMethodCtor(collector, LogLevel.Warning, ("p0", "-----"), ("p1", "arg_1")); 149new NonStaticTestClass(logger).M3(LogLevel.Information, "arg_0"); 150AssertWhenDefaultLogMethodCtor(collector, LogLevel.Information, ("p0", "-----")); 153private static void AssertWhenDefaultLogMethodCtor(FakeLogCollector collector, LogLevel expectedLevel, params (string key, string value)[] expectedState)
LogMethodTests.cs (80)
26Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 33Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 40Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 53Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 66fakeLogger.ControlLevel(LogLevel.Trace, false); 67fakeLogger.ControlLevel(LogLevel.Debug, false); 68fakeLogger.ControlLevel(LogLevel.Information, false); 69fakeLogger.ControlLevel(LogLevel.Warning, false); 70fakeLogger.ControlLevel(LogLevel.Error, false); 71fakeLogger.ControlLevel(LogLevel.Critical, false); 73LevelTestExtensions.M8(logger, LogLevel.Trace); 74LevelTestExtensions.M8(logger, LogLevel.Debug); 75LevelTestExtensions.M8(logger, LogLevel.Information); 76LevelTestExtensions.M8(logger, LogLevel.Warning); 77LevelTestExtensions.M8(logger, LogLevel.Error); 78LevelTestExtensions.M8(logger, LogLevel.Critical); 212CollectionTestExtensions.M9(logger, LogLevel.Critical, 0, new ArgumentException("Foo"), 1); 226Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 231ConstructorVariationsTestExtensions.M1(logger, LogLevel.Error, "One"); 234Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 242Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 247ConstructorVariationsTestExtensions.M3(logger, LogLevel.Error, "Three"); 250Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 258Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 263ConstructorVariationsTestExtensions.M5(logger, LogLevel.Error, "Five"); 266Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 274Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 279ConstructorVariationsTestExtensions.M7(logger, LogLevel.Information, "Seven"); 285Assert.Equal(LogLevel.Information, logRecord.Level); 296Assert.Equal(LogLevel.Trace, logRecord.Level); 311Assert.Equal(LogLevel.Trace, collector.LatestRecord.Level); 318Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 325Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 332Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 336MessageTestExtensions.M6(logger, LogLevel.Warning, "p", "q"); 339Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 347Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 364Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 371Assert.Equal(LogLevel.Trace, collector.LatestRecord.Level); 375o.M2(LogLevel.Warning, "param"); 381Assert.Equal(LogLevel.Warning, logRecord.Level); 406Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 413Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 420Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 427Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 434Assert.Equal(LogLevel.None, collector.LatestRecord.Level); 441Assert.Equal((LogLevel)42, collector.LatestRecord.Level); 445LevelTestExtensions.M8(logger, LogLevel.Critical); 448Assert.Equal(LogLevel.Critical, collector.LatestRecord.Level); 452LevelTestExtensions.M9(LogLevel.Information, logger); 455Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 459LevelTestExtensions.M10(logger, LogLevel.Warning); 462Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 466LevelTestExtensions.M11(logger, LogLevel.Error); 468Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 484Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 488instance.NoParamsWithLevel(LogLevel.Information); 491Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 495instance.NoParamsWithLevel(LogLevel.Error); 498Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 529Assert.Equal(LogLevel.Trace, collector.LatestRecord.Level); 536Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 543Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 548ExceptionTestExtensions.M3(exception, logger, LogLevel.Error); 554Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 567Assert.Equal(LogLevel.Trace, collector.LatestRecord.Level); 572EventNameTestExtensions.M1(LogLevel.Warning, logger, "Eight"); 578Assert.Equal(LogLevel.Warning, logRecord.Level); 590EventNameTestExtensions.M1(LogLevel.Warning, logger, "Eight"); 624Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 631Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 638Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 645Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 652Assert.Equal(LogLevel.Debug, collector.LatestRecord.Level); 737fakeLogger.ControlLevel(LogLevel.Information, false); 742SkipEnabledCheckTestExtensions.LoggerMethodWithFalseSkipEnabledCheck(logger, LogLevel.Information, "p1"); 785AtSymbolsTestExtensions.UseAtSymbol3(logger, LogLevel.Debug, "42", 42); 791AtSymbolsTestExtensions.UseAtSymbol4(logger, LogLevel.Debug, "42", 42, new ArgumentException("Foo")); 798AtSymbolsTestExtensions.M3(logger, LogLevel.Debug, o); 802AtSymbolsTestExtensions.M5(logger, LogLevel.Debug, o);
LogPropertiesRedactionTests.cs (6)
52instance.DefaultAttrCtorLogPropertiesWithRedaction(LogLevel.Information, "arg0", classToRedact); 56Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 106LogNoParamsDefaultCtor(logger, LogLevel.Warning, classToRedact); 110Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 161LogTwoParamsDefaultCtor(logger, LogLevel.None, "string_prop", classToRedact); 165Assert.Equal(LogLevel.None, collector.LatestRecord.Level);
LogPropertiesTests.cs (12)
77LogPropertiesOmitParameterNameExtensions.M2(_logger, LogLevel.Critical, props); 229Assert.Equal(LogLevel.Debug, _logger.Collector.LatestRecord.Level); 302Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 323Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 343Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 365Assert.Equal(LogLevel.Information, latestRecord.Level); 468LogMethodDefaultAttrCtor(_logger, LogLevel.Critical, classToLog); 474Assert.Equal(LogLevel.Critical, latestRecord.Level); 501Assert.Equal(LogLevel.Information, latestRecord.Level); 525Assert.Equal(LogLevel.Debug, latestRecord.Level); 550Assert.Equal(LogLevel.Debug, latestRecord.Level); 576Assert.Equal(LogLevel.Debug, latestRecord.Level);
TagProviderTests.cs (24)
34Assert.Equal(LogLevel.Warning, latestRecord.Level); 57Assert.Equal(LogLevel.Information, latestRecord.Level); 78new NonStaticTestClass(_logger).DefaultAttrCtorLogPropertiesWithProvider(LogLevel.Debug, StringParamValue, classToLog); 84Assert.Equal(LogLevel.Debug, latestRecord.Level); 101TagProviderExtensions.DefaultAttributeCtor(_logger, LogLevel.Trace, classToLog); 107Assert.Equal(LogLevel.Trace, latestRecord.Level); 122TagProviderExtensions.Nullable(_logger, LogLevel.Trace, null); 128Assert.Equal(LogLevel.Trace, latestRecord.Level); 133TagProviderExtensions.Nullable(_logger, LogLevel.Trace, 42); 139Assert.Equal(LogLevel.Trace, latestRecord.Level); 163Assert.Equal(LogLevel.Warning, latestRecord.Level); 183LogPropertiesOmitParameterNameExtensions.M3(_logger, LogLevel.Error, props); 189Assert.Equal(LogLevel.Error, latestRecord.Level); 208Assert.Equal(LogLevel.Warning, latestRecord.Level); 227Assert.Equal(LogLevel.Warning, latestRecord.Level); 247Assert.Equal(LogLevel.Warning, latestRecord.Level); 269Assert.Equal(LogLevel.Debug, latestRecord.Level); 290Assert.Equal(LogLevel.Information, latestRecord.Level); 307TagProviderExtensions.Enumerable(_logger, LogLevel.Debug, a); 311Assert.Equal(LogLevel.Debug, latestRecord.Level); 331Assert.Equal(LogLevel.Warning, latestRecord.Level); 358Assert.Equal(LogLevel.Warning, latestRecord.Level); 396Assert.Equal(LogLevel.Warning, latestRecord.Level); 421Assert.Equal(LogLevel.Warning, latestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\ArgTestExtensions.cs (10)
11[LoggerMessage(0, LogLevel.Error, "M1")] 14[LoggerMessage(1, LogLevel.Error, "M2 {p1}")] 17[LoggerMessage(2, LogLevel.Error, "M3 {p1} {p2}")] 20[LoggerMessage(3, LogLevel.Error, "M4")] 23[LoggerMessage(4, LogLevel.Error, "M5 {p2}")] 26[LoggerMessage(5, LogLevel.Error, "M6 {p2}")] 29[LoggerMessage(6, LogLevel.Error, "M7 {p1}")] 33[LoggerMessage(7, LogLevel.Error, "M8{p1}{p2}{p3}{p4}{p5}{p6}{p7}")] 36[LoggerMessage(8, LogLevel.Error, "M9 {p1} {p2} {p3} {p4} {p5} {p6} {p7}")] 40[LoggerMessage(9, LogLevel.Error, "M10{p1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (10)
18[LoggerMessage(0, LogLevel.Information, "M0 {event}")] 21[LoggerMessage(1, LogLevel.Information, "M1 {@myevent1}")] 25public static partial void UseAtSymbol3(ILogger logger, LogLevel level, string @myevent2, int otherevent); 28public static partial void UseAtSymbol4(ILogger logger, LogLevel level, string @myevent3, int otherevent, System.Exception ex); 31internal static partial void M2(ILogger logger, LogLevel level, string @event); 34internal static partial void M3(ILogger logger, LogLevel level, [LogProperties] SpecialNames @event); 36[LoggerMessage(LogLevel.Information, "M4 {class}")] 40internal static partial void M5(ILogger logger, LogLevel level, [LogProperties(OmitReferenceName = true)] SpecialNames @event); 42[LoggerMessage(LogLevel.Information, "M6 class {class}")] 45[LoggerMessage(LogLevel.Information, "M7 param {@param}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\AttributeTestExtensions.cs (11)
13[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 16[LoggerMessage(1, LogLevel.Debug, "M1 {p0} {p1}")] 19[LoggerMessage(2, LogLevel.Debug, "M2 {p0} {p1}")] 22[LoggerMessage(3, LogLevel.Debug, "M3 {p0} {p1} {p2} {p3}")] 30[LoggerMessage(4, LogLevel.Debug, "M4 {p0} {p1} {p2} {p3}")] 38[LoggerMessage(5, LogLevel.Debug, "M5 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8} {p9} {p10}")] 56public static partial void M6(ILogger logger, LogLevel level, 60public static partial void M7(ILogger logger, LogLevel level, 63[LoggerMessage(8, LogLevel.Debug, "M8 {p0}")] 66[LoggerMessage(9, LogLevel.Debug, "M9 {p0}")] 69[LoggerMessage(10, LogLevel.Debug, "M10 {p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\CollectionTestExtensions.cs (10)
10[LoggerMessage(0, LogLevel.Error, "M0")] 13[LoggerMessage(1, LogLevel.Error, "M1{p0}")] 16[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")] 19[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")] 22[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")] 25[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")] 28[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")] 32[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")] 35[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")] 40public static partial void M9(ILogger logger, LogLevel level, int p0, System.Exception ex, int p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\ConstraintsTestExtensions.cs (7)
15[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 26[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 37[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 48[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 59[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 70[LoggerMessage(0, LogLevel.Debug, "M0{p0}")] 81[LoggerMessage(0, LogLevel.Debug, "M0{p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\ConstructorVariationsTestExtensions.cs (9)
10[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 14public static partial void M1(ILogger logger, LogLevel level, string p0); 16[LoggerMessage(LogLevel.Debug)] 20public static partial void M3(ILogger logger, LogLevel level, string p0); 22[LoggerMessage(LogLevel.Debug, "M4 {p0}")] 26public static partial void M5(ILogger logger, LogLevel level, string p0); 28[LoggerMessage(LogLevel.Debug)] 32public static partial void M7(ILogger logger, LogLevel level, string p0); 34[LoggerMessage(Level = LogLevel.Trace, EventName = "EN1", EventId = 42, Message = "M8", SkipEnabledCheck = true)]
test\Generators\Microsoft.Gen.Logging\TestClasses\DataClassificationTestExtensions.cs (3)
22[LoggerMessage(1, LogLevel.Error, "M0 {p1}")] 25[LoggerMessage(2, LogLevel.Error, "M1 {p1} {p2}")] 28[LoggerMessage(3, LogLevel.Error, "M2")]
test\Generators\Microsoft.Gen.Logging\TestClasses\EnumerableTestExtensions.cs (15)
12[LoggerMessage(0, LogLevel.Error, "M0")] 15[LoggerMessage(1, LogLevel.Error, "M1{p0}")] 18[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")] 21[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")] 24[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")] 27[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")] 30[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")] 35[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")] 38[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")] 41[LoggerMessage(9, LogLevel.Error, "M9{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}{p8}")] 44[LoggerMessage(10, LogLevel.Error, "M10{p1}{p2}{p3}")] 47[LoggerMessage(11, LogLevel.Error, "M11{p1}")] 50[LoggerMessage(12, LogLevel.Error, "M12{class}")] 53[LoggerMessage(13, LogLevel.Error, "M13{p1}")] 56[LoggerMessage(14, LogLevel.Error, "M14{p1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\EventNameTestExtensions.cs (4)
10[LoggerMessage(0, LogLevel.Trace, "M0", EventName = "CustomEventName")] 14public static partial void M1(LogLevel level, ILogger logger, string p0); 17[LoggerMessage(LogLevel.Debug)] 21[LoggerMessage(LogLevel.Error)]
test\Generators\Microsoft.Gen.Logging\TestClasses\ExceptionTestExtensions.cs (4)
11[LoggerMessage(0, LogLevel.Trace, "M0 {ex2}")] 14[LoggerMessage(1, LogLevel.Debug, "M1 {ex2}")] 18[LoggerMessage(2, LogLevel.Debug, "M2 {arg1}: {ex}")] 23public static partial void M3(Exception ex, ILogger logger, LogLevel level);
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (3)
11[LoggerMessage(0, LogLevel.Error, "Method1 {p1}")] 14[LoggerMessage(1, LogLevel.Error, "Method2")] 17[LoggerMessage(2, LogLevel.Error, "Method3")]
test\Generators\Microsoft.Gen.Logging\TestClasses\InParameterTestExtensions.cs (1)
15[LoggerMessage(0, LogLevel.Information, "M0 {s}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\InvariantTestExtensions.cs (1)
11[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LevelTestExtensions.cs (12)
10[LoggerMessage(0, LogLevel.Trace, "M0")] 13[LoggerMessage(1, LogLevel.Debug, "M1")] 16[LoggerMessage(2, LogLevel.Information, "M2")] 19[LoggerMessage(3, LogLevel.Warning, "M3")] 22[LoggerMessage(4, LogLevel.Error, "M4")] 25[LoggerMessage(5, LogLevel.Critical, "M5")] 28[LoggerMessage(6, LogLevel.None, "M6")] 31[LoggerMessage(7, (LogLevel)42, "M7")] 35public static partial void M8(ILogger logger, LogLevel level); 38public static partial void M9(LogLevel level, ILogger logger); 42public static partial void M10(ILogger logger, LogLevel level); 47public static partial void M11(ILogger logger, LogLevel level);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (9)
215[LoggerMessage(0, LogLevel.Debug, "Only {classToLog_StringProperty_1} as param")] 228[LoggerMessage(1, LogLevel.Information, "Both {StringProperty} and {ComplexParam} as params")] 231[LoggerMessage(2, LogLevel.Information, "Testing non-nullable struct here...")] 234[LoggerMessage(3, LogLevel.Information, "Testing nullable struct here...")] 237[LoggerMessage(4, LogLevel.Information, "Testing explicit nullable struct here...")] 240[LoggerMessage(5, LogLevel.Information, "Testing nullable property within class here...")] 244public static partial void LogMethodDefaultAttrCtor(ILogger logger, LogLevel level, [LogProperties] ClassAsParam? complexParam); 246[LoggerMessage(6, LogLevel.Information, "Testing interface-typed argument here...")] 249[LoggerMessage(7, LogLevel.Information, "Testing logging a complex object residing in another assembly...")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesNullHandlingExtensions.cs (2)
38[LoggerMessage(LogLevel.Debug)] 41[LoggerMessage(LogLevel.Debug)]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesOmitParameterNameExtensions.cs (4)
17[LoggerMessage(LogLevel.Debug)] 20[LoggerMessage(LogLevel.Warning)] 28LogLevel level, 34LogLevel level,
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRecordExtensions.cs (3)
28[LoggerMessage(LogLevel.Debug)] 31[LoggerMessage(LogLevel.Debug, "Struct is: {p0}")] 34[LoggerMessage(LogLevel.Debug, "Readonly struct is: {p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRedactionExtensions.cs (5)
55[LoggerMessage(1, LogLevel.Debug, "No template params")] 58[LoggerMessage(2, LogLevel.Information, "Only {StringProperty} as param")] 65public static partial void LogNoParamsDefaultCtor(ILogger logger, LogLevel level, 70ILogger logger, LogLevel level, 73[LoggerMessage(LogLevel.Debug, "User {userId} has now different status")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSimpleExtensions.cs (1)
25[LoggerMessage(0, LogLevel.Debug, "{p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
43[LoggerMessage(LogLevel.Debug)]
test\Generators\Microsoft.Gen.Logging\TestClasses\MessageTestExtensions.cs (9)
10[LoggerMessage(0, LogLevel.Trace, null!)] 13[LoggerMessage(1, LogLevel.Debug, "")] 17[LoggerMessage(LogLevel.Debug)] 21[LoggerMessage(LogLevel.Trace)] 24[LoggerMessage(LogLevel.Debug, "")] 27[LoggerMessage(LogLevel.Debug, "{p1}")] 30[LoggerMessage(LogLevel.Debug, "\"Hello\" World")] 34public static partial void M6(ILogger logger, LogLevel logLevel, string value1, string value2); 36[LoggerMessage(LogLevel.Debug, "\"\n\r\\")]
test\Generators\Microsoft.Gen.Logging\TestClasses\MiscTestExtensions.cs (3)
12[LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")] 21[LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")] 33[LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NamespaceTestExtensions.cs (1)
10[LoggerMessage(1, LogLevel.Critical, "Could not open socket to `{hostName}`")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NestedClassTestExtensions.cs (5)
21[LoggerMessage(8, LogLevel.Error, "M8")] 36[LoggerMessage(9, LogLevel.Debug, "M9")] 50[LoggerMessage(10, LogLevel.Debug, "M10")] 59[LoggerMessage(11, LogLevel.Debug, "M11")] 72[LoggerMessage(12, LogLevel.Debug, "M12")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonSensitiveRecordExtensions.cs (1)
20[LoggerMessage(6001, LogLevel.Information, "Logging User: {User}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticNullableTestClass.cs (1)
18[LoggerMessage(2, LogLevel.Debug, "M2 {p0} {p1} {p2}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (11)
19[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 22[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 25[LoggerMessage(2, LogLevel.Debug, "M2 {p0} {p1} {p2}")] 29public partial void M3(LogLevel level, [PrivateData] string p0); 31[LoggerMessage(4, LogLevel.Information, "LogProperties: {P0}")] 34[LoggerMessage(5, LogLevel.Information, "LogProperties with provider: {P0}, {P1}")] 39[LoggerMessage(6, LogLevel.Information, "LogProperties with redaction: {P0}")] 46LogLevel level, 52LogLevel level, 56[LoggerMessage(7, LogLevel.Warning, "No params here...")] 60public partial void NoParamsWithLevel(LogLevel level);
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClasses.cs (9)
14[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 22[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 30[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 36[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 42[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 55[LoggerMessage(1, LogLevel.Debug, "M0 {p0}")] 69[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 75[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 86[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NullableTestExtensions.cs (6)
11[LoggerMessage(0, LogLevel.Debug, "M0 {p0}")] 14[LoggerMessage(1, LogLevel.Debug, "M1 {p0}")] 17[LoggerMessage(3, LogLevel.Debug, "M3 {p0}")] 21[LoggerMessage(4, LogLevel.Debug, "M4 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8}")] 24[LoggerMessage(5, LogLevel.Debug, "M5 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8}")] 28[LoggerMessage(6, LogLevel.Debug, "M6 {p0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\OriginalFormatTestExtensions.cs (4)
10[LoggerMessage(0, LogLevel.Information, "M0")] 13[LoggerMessage(1, LogLevel.Information, "M1 {p0}")] 16[LoggerMessage(2, LogLevel.Information, "M2 {p0}{p1}")] 19[LoggerMessage(LogLevel.Information)]
test\Generators\Microsoft.Gen.Logging\TestClasses\OverloadsTestExtensions.cs (2)
10[LoggerMessage(0, LogLevel.Information, "M0 {v}", EventName = "One")] 13[LoggerMessage(1, LogLevel.Information, "M0 {v}", EventName = "Two")]
test\Generators\Microsoft.Gen.Logging\TestClasses\PrimaryConstructorsExtensions.cs (4)
12[LoggerMessage(0, LogLevel.Debug, "Test.")] 20[LoggerMessage(0, LogLevel.Debug, "Test.")] 30[LoggerMessage(0, LogLevel.Debug, "Test.")] 36[LoggerMessage(0, LogLevel.Debug, "Test.")]
test\Generators\Microsoft.Gen.Logging\TestClasses\RecordTestExtensions.cs (1)
10[LoggerMessage(12, LogLevel.Debug, "M0")]
test\Generators\Microsoft.Gen.Logging\TestClasses\SensitiveRecordExtensions.cs (5)
69[LoggerMessage(LogLevel.Debug, "Param is {p0}")] 72[LoggerMessage(LogLevel.Debug)] 75[LoggerMessage(LogLevel.Information, "Data was obtained")] 80[LoggerMessage(LogLevel.Information)] 85[LoggerMessage(LogLevel.Information, "Data is {data}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\SignatureTestExtensions.cs (15)
13[LoggerMessage(eventId: 10, level: LogLevel.Critical, message: "Message11")] 17[LoggerMessage(1, LogLevel.Debug, "{p1} {p2}")] 21[LoggerMessage(2, LogLevel.Debug, "{helper}")] 41M11(logger, "A", LogLevel.Debug, "B"); 45[LoggerMessage(0, LogLevel.Critical, "Message1")] 49[LoggerMessage(1, LogLevel.Critical, "Message2")] 53[LoggerMessage(2, LogLevel.Critical, "Message3")] 57[LoggerMessage(3, LogLevel.Critical, "Message4")] 61[LoggerMessage(4, LogLevel.Critical, "Message5 {items}")] 65[LoggerMessage(5, LogLevel.Critical, "Message6\n\"\r")] 69[LoggerMessage(6, LogLevel.Critical, "Message7 {p1}\n\"\r")] 73[LoggerMessage(7, LogLevel.Critical, "Message8")] 77[LoggerMessage(8, LogLevel.Critical, "Message9")] 81[LoggerMessage(9, LogLevel.Critical, "Message10 {optional}")] 86internal static partial void M11(ILogger logger, string p1, LogLevel level, string p2);
test\Generators\Microsoft.Gen.Logging\TestClasses\SkipEnabledCheckTestExtensions.cs (3)
10[LoggerMessage(0, LogLevel.Information, "M0", SkipEnabledCheck = true)] 13[LoggerMessage(1, LogLevel.Information, "M1", SkipEnabledCheck = false)] 18internal static partial void LoggerMethodWithFalseSkipEnabledCheck(ILogger logger, LogLevel level, string p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\StructTestExtensions.cs (1)
10[LoggerMessage(0, LogLevel.Trace, "M0")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagNameExtensions.cs (2)
10[LoggerMessage(LogLevel.Warning)] 13[LoggerMessage(LogLevel.Warning, Message = "{foo.bar}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (8)
14[LoggerMessage(int.MaxValue, LogLevel.Warning, "Custom provided properties for {Param}.")] 19[LoggerMessage(LogLevel.Debug, "Custom provided properties for struct.")] 24[LoggerMessage(LogLevel.Information, "Custom provided properties for interface.")] 29[LoggerMessage(int.MinValue, LogLevel.Warning, "Custom provided properties for both complex params and {StringParam}.")] 36[LoggerMessage(1, LogLevel.Warning, "No params.")] 45LogLevel level, 51LogLevel level, 57LogLevel level,
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderWithObjectExtensions.cs (2)
12[LoggerMessage(int.MaxValue, LogLevel.Warning, "Custom provided properties for {Param}.")] 17[LoggerMessage(int.MinValue, LogLevel.Warning, "Custom provided properties for both complex params and {StringParam}.")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TemplateTestExtensions.cs (4)
10[LoggerMessage(0, LogLevel.Error, "M0 {A1}")] 13[LoggerMessage(1, LogLevel.Error, "M1 {A1} {A1}")] 17[LoggerMessage(2, LogLevel.Error, "M2 {A1} {a2} {A3} {a4} {A5} {a6} {A7}")] 21[LoggerMessage(3, LogLevel.Error, "M3 {a2} {A1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TestInstances.cs (3)
19[LoggerMessage(0, LogLevel.Error, "M0")] 22[LoggerMessage(1, LogLevel.Trace, "M1 {p1}")] 26public partial void M2(LogLevel level, string p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (4)
37[LoggerMessage(LogLevel.Debug)] 40[LoggerMessage(LogLevel.Debug)] 43[LoggerMessage(LogLevel.Warning)] 46[LoggerMessage(LogLevel.Information)]
Utils.cs (3)
62public bool IsEnabled(LogLevel logLevel) => _logger.IsEnabled(logLevel); 63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 74builder.SetMinimumLevel(LogLevel.Trace);
Microsoft.Maui (2)
Hosting\MauiAppBuilder.cs (2)
198 public bool IsEnabled(LogLevel logLevel) => false; 200 public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.NET.Build.Containers (1)
Registry\HttpExtensions.cs (1)
69if (logger.IsEnabled(LogLevel.Trace))
Microsoft.TemplateEngine.Cli (11)
CliConsoleFormatter.cs (9)
33LogLevel logLevel = logEntry.LogLevel; 36case LogLevel.Information: 39case LogLevel.Error: 40case LogLevel.Critical: 44case LogLevel.Warning: 48case LogLevel.Debug: 49case LogLevel.Trace: 100if (logEntry.LogLevel == LogLevel.Debug || logEntry.LogLevel == LogLevel.Trace)
CliTemplateEngineHost.cs (2)
22LogLevel logLevel = LogLevel.Information)
OrderProcessor (1)
OrderProcessingWorker.cs (1)
59if (_logger.IsEnabled(LogLevel.Debug))
Shared (3)
LogBuffering\SerializedLogRecord.cs (2)
31LogLevel logLevel, 51public LogLevel LogLevel { get; }
LogBuffering\SerializedLogRecordFactory.cs (1)
21LogLevel logLevel,
Stress.ApiService (1)
Program.cs (1)
231logger.Log(LogLevel.Information, 0, eventData, null, formatter: (_, _) => null!);
Stress.TelemetryService (1)
Program.cs (1)
12builder.Logging.SetMinimumLevel(LogLevel.Trace);
TestProject.WorkerA (1)
Worker.cs (1)
21if (_logger.IsEnabled(LogLevel.Information))