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."); 229if (_logger.IsEnabled(LogLevel.Debug)) 231_logger.LogDebug(1, "Unknown proxy: {RemoteIpAndPort}", currentValues.RemoteIpAndPort); 246if (_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)}");