1 write to _logger
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
63
_logger
= loggerFactory.CreateLogger<ForwardedHeadersMiddleware>();
11 references to _logger
Microsoft.AspNetCore.HttpOverrides (11)
ForwardedHeadersMiddleware.cs (11)
142
_logger
.LogWarning(1, "Parameter count mismatch between X-Forwarded-For and X-Forwarded-Proto.");
156
_logger
.LogWarning(1, "Parameter count mismatch between X-Forwarded-Host and X-Forwarded-For or X-Forwarded-Proto.");
171
_logger
.LogWarning(1, "Parameter count mismatch between X-Forwarded-Prefix and X-Forwarded-Host and X-Forwarded-For or X-Forwarded-Proto.");
229
if (
_logger
.IsEnabled(LogLevel.Debug))
231
_logger
.LogDebug(1, "Unknown proxy: {RemoteIpAndPort}", currentValues.RemoteIpAndPort);
246
if (
_logger
.IsEnabled(LogLevel.Debug))
248
_logger
.LogDebug(1, "Unparsable IP: {IpAndPortText}", set.IpAndPortText);
254
_logger
.LogWarning(2, "Missing forwarded IPAddress.");
268
_logger
.LogWarning(3, $"Forwarded scheme is not present, this is required by {nameof(_options.RequireHeaderSymmetry)}");
283
_logger
.LogWarning(4, $"Incorrect number of x-forwarded-host header values, see {nameof(_options.RequireHeaderSymmetry)}.");
297
_logger
.LogWarning(5, $"Incorrect number of x-forwarded-prefix header values, see {nameof(_options.RequireHeaderSymmetry)}");