| File: Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs | |
| Project: ..\..\..\src\Libraries\Microsoft.AspNetCore.HeaderParsing\Microsoft.AspNetCore.HeaderParsing.csproj (Microsoft.AspNetCore.HeaderParsing) |
// <auto-generated/> #nullable enable namespace Microsoft.AspNetCore.HeaderParsing { partial class HeaderParsingFeature { /// <summary> /// Logs "Can't parse header '{HeaderName}' due to '{Error}'." at "Debug" level. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] private partial void LogParsingError(string headerName, string error) { if (!_logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { return; } var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState; try { _ = state.ReserveTagSpace(3); state.TagArray[2] = new("{OriginalFormat}", "Can't parse header '{HeaderName}' due to '{Error}'."); state.TagArray[1] = new("HeaderName", headerName); state.TagArray[0] = new("Error", error); _logger.Log( global::Microsoft.Extensions.Logging.LogLevel.Debug, new(932391387, nameof(LogParsingError)), state, null, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) => { var headerName = s.TagArray[1].Value ?? "(null)"; var error = s.TagArray[0].Value ?? "(null)"; #if NET return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"Can't parse header '{headerName}' due to '{error}'."); #else return global::System.FormattableString.Invariant($"Can't parse header '{headerName}' due to '{error}'."); #endif }); } finally { state.Clear(); } } /// <summary> /// Logs "Using a default value for header '{HeaderName}'." at "Debug" level. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] private partial void LogDefaultUsage(string headerName) { if (!_logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { return; } var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState; try { _ = state.ReserveTagSpace(2); state.TagArray[1] = new("{OriginalFormat}", "Using a default value for header '{HeaderName}'."); state.TagArray[0] = new("HeaderName", headerName); _logger.Log( global::Microsoft.Extensions.Logging.LogLevel.Debug, new(946012355, nameof(LogDefaultUsage)), state, null, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) => { var headerName = s.TagArray[0].Value ?? "(null)"; #if NET return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"Using a default value for header '{headerName}'."); #else return global::System.FormattableString.Invariant($"Using a default value for header '{headerName}'."); #endif }); } finally { state.Clear(); } } /// <summary> /// Logs "Header '{HeaderName}' not found." at "Debug" level. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] private partial void LogNotFound(string headerName) { if (!_logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { return; } var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState; try { _ = state.ReserveTagSpace(2); state.TagArray[1] = new("{OriginalFormat}", "Header '{HeaderName}' not found."); state.TagArray[0] = new("HeaderName", headerName); _logger.Log( global::Microsoft.Extensions.Logging.LogLevel.Debug, new(1686204510, nameof(LogNotFound)), state, null, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) => { var headerName = s.TagArray[0].Value ?? "(null)"; #if NET return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"Header '{headerName}' not found."); #else return global::System.FormattableString.Invariant($"Header '{headerName}' not found."); #endif }); } finally { state.Clear(); } } } }