File: Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs
Project: ..\..\..\src\Libraries\Microsoft.AspNetCore.Diagnostics.Middleware\Microsoft.AspNetCore.Diagnostics.Middleware.csproj (Microsoft.AspNetCore.Diagnostics.Middleware)

// <auto-generated/>
#nullable enable
 
namespace Microsoft.AspNetCore.Diagnostics
{
    partial class Log
    {
        /// <summary>
        /// Logs "Enricher failed: {Enricher}." at "Warning" level.
        /// </summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")]
        internal static partial void EnricherFailed(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception, string enricher)
        {
            if (!logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
            {
                return;
            }
 
            var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState;
            try
            {
 
                _ = state.ReserveTagSpace(2);
                state.TagArray[1] = new("{OriginalFormat}", "Enricher failed: {Enricher}.");
                state.TagArray[0] = new("Enricher", enricher);
 
                logger.Log(
                    global::Microsoft.Extensions.Logging.LogLevel.Warning,
                    new(0, nameof(EnricherFailed)),
                    state,
                    exception,
                    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) =>
                    {
                        var enricher = s.TagArray[0].Value ?? "(null)";
                        #if NET
                        return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"Enricher failed: {enricher}.");
                        #else
                        return global::System.FormattableString.Invariant($"Enricher failed: {enricher}.");
                        #endif
                    });
            }
            finally
            {
                state.Clear();
            }
        }
    }
}