Kestrel Options
Can UseConnectionLogging be set on appsettings.json files for Kestrel?
3 Replies
the core code that puts that JSON config to work is https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.server.kestrel.core.kestrelserveroptions.configure?view=aspnetcore-8.0
KestrelServerOptions.Configure Method (Microsoft.AspNetCore.Server....
Creates a configuration loader for setting up Kestrel that takes an IConfiguration as input. This configuration must be scoped to the configuration section for Kestrel.
and there's nothing on
KestrelServerOptions
that looks like it would affect that
plus, a quick search of the source code doesn't show .UseConnectionLogging()
getting called dynamically by any config codethank you