// <auto-generated/>
#nullable enable
namespace Microsoft.Extensions.Http.Logging.Internal
{
partial class Log
{
/// <summary>
/// Logs "An error occurred while reading the request data to fill the logger context for request: {http.request.method} {server.address}/{url.path}" at "Error" level.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")]
public static partial void RequestReadError(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception, global::System.Net.Http.HttpMethod method, string? host, string? path)
{
var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState;
try
{
_ = state.ReserveTagSpace(4);
state.TagArray[3] = new("{OriginalFormat}", "An error occurred while reading the request data to fill the logger context for request: {http.request.method} {server.address}/{url.path}");
state.TagArray[2] = new("http.request.method", method);
state.TagArray[1] = new("server.address", host);
state.TagArray[0] = new("url.path", path);
logger.Log(
global::Microsoft.Extensions.Logging.LogLevel.Error,
new(225418300, nameof(RequestReadError)),
state,
exception,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) =>
{
var method = s.TagArray[2].Value ?? "(null)";
var host = s.TagArray[1].Value ?? "(null)";
var path = s.TagArray[0].Value ?? "(null)";
#if NET
return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"An error occurred while reading the request data to fill the logger context for request: {method} {host}/{path}");
#else
return global::System.FormattableString.Invariant($"An error occurred while reading the request data to fill the logger context for request: {method} {host}/{path}");
#endif
});
}
finally
{
state.Clear();
}
}
/// <summary>
/// Logs "An error occurred while reading the response data to fill the logger context for request: {http.request.method} {server.address}/{url.path}" at "Error" level.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")]
public static partial void ResponseReadError(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception, global::System.Net.Http.HttpMethod method, string host, string path)
{
var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState;
try
{
_ = state.ReserveTagSpace(4);
state.TagArray[3] = new("{OriginalFormat}", "An error occurred while reading the response data to fill the logger context for request: {http.request.method} {server.address}/{url.path}");
state.TagArray[2] = new("http.request.method", method);
state.TagArray[1] = new("server.address", host);
state.TagArray[0] = new("url.path", path);
logger.Log(
global::Microsoft.Extensions.Logging.LogLevel.Error,
new(2020611392, nameof(ResponseReadError)),
state,
exception,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) =>
{
var method = s.TagArray[2].Value ?? "(null)";
var host = s.TagArray[1].Value ?? "(null)";
var path = s.TagArray[0].Value ?? "(null)";
#if NET
return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"An error occurred while reading the response data to fill the logger context for request: {method} {host}/{path}");
#else
return global::System.FormattableString.Invariant($"An error occurred while reading the response data to fill the logger context for request: {method} {host}/{path}");
#endif
});
}
finally
{
state.Clear();
}
}
/// <summary>
/// Logs "The logger couldn't read its context for {RequestState} request: {http.request.method} {server.address}" at "Error" level.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")]
public static partial void LoggerContextMissing(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception? exception, string requestState, global::System.Net.Http.HttpMethod method, string? host)
{
var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState;
try
{
_ = state.ReserveTagSpace(4);
state.TagArray[3] = new("{OriginalFormat}", "The logger couldn't read its context for {RequestState} request: {http.request.method} {server.address}");
state.TagArray[2] = new("RequestState", requestState);
state.TagArray[1] = new("http.request.method", method);
state.TagArray[0] = new("server.address", host);
logger.Log(
global::Microsoft.Extensions.Logging.LogLevel.Error,
new(1602479740, nameof(LoggerContextMissing)),
state,
exception,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) =>
{
var requestState = s.TagArray[2].Value ?? "(null)";
var method = s.TagArray[1].Value ?? "(null)";
var host = s.TagArray[0].Value ?? "(null)";
#if NET
return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"The logger couldn't read its context for {requestState} request: {method} {host}");
#else
return global::System.FormattableString.Invariant($"The logger couldn't read its context for {requestState} request: {method} {host}");
#endif
});
}
finally
{
state.Clear();
}
}
/// <summary>
/// Logs "An error occurred in enricher '{Enricher}' while enriching the logger context for request: {http.request.method} {server.address}/{url.path}" at "Error" level.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")]
public static partial void EnrichmentError(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception, string? enricher, global::System.Net.Http.HttpMethod method, string host, string path)
{
var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState;
try
{
_ = state.ReserveTagSpace(5);
state.TagArray[4] = new("{OriginalFormat}", "An error occurred in enricher '{Enricher}' while enriching the logger context for request: {http.request.method} {server.address}/{url.path}");
state.TagArray[3] = new("Enricher", enricher);
state.TagArray[2] = new("http.request.method", method);
state.TagArray[1] = new("server.address", host);
state.TagArray[0] = new("url.path", path);
logger.Log(
global::Microsoft.Extensions.Logging.LogLevel.Error,
new(1586127222, nameof(EnrichmentError)),
state,
exception,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) =>
{
var enricher = s.TagArray[3].Value ?? "(null)";
var method = s.TagArray[2].Value ?? "(null)";
var host = s.TagArray[1].Value ?? "(null)";
var path = s.TagArray[0].Value ?? "(null)";
#if NET
return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"An error occurred in enricher '{enricher}' while enriching the logger context for request: {method} {host}/{path}");
#else
return global::System.FormattableString.Invariant($"An error occurred in enricher '{enricher}' while enriching the logger context for request: {method} {host}/{path}");
#endif
});
}
finally
{
state.Clear();
}
}
}
}