I have an ASP.NET Core MVC app using Serilog. Sinks are configured in the appsettings.json. I have a few sinks.
One of the sinks is not behaving. Typically I would overwrite the values of the appsettings using the UserSecrets. In this case, since the entry I want to overwrite is one of the items in a {Serilog:{WriteTo:[]}}, changing values for the one item and leaving the others as they are is not obvious. I can see one way is to have a separate IConfigurationProvider for each environment that replicates the entire WriteTo array, except for the one item being examined.
When I have a few environments and a few items in the array and the items can be moderately complex, this approach won't scale.
Is there an approach here that can scale with complexity?