You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR; if I want to have one sink in appsettings.json and one in appsettings.development.json I need to use funky array notation syntax. The problem is the two files need to know about the order of arrays. The config files would be much more elegant if WriteTo could take a hash table. Perhaps in that case the Key could be the Extension method to add the sink and the value could be the args array. Of course the sacrifice there is you could not use a sink twice. In many cases that could be considered a feature.
The text was updated successfully, but these errors were encountered:
I posted this self answer on stackoverflow last night:
https://stackoverflow.com/questions/50167228/appending-arrays-in-from-appsettings-environment-json-to-appsettings-json
TL;DR; if I want to have one sink in appsettings.json and one in appsettings.development.json I need to use funky array notation syntax. The problem is the two files need to know about the order of arrays. The config files would be much more elegant if WriteTo could take a hash table. Perhaps in that case the Key could be the Extension method to add the sink and the value could be the args array. Of course the sacrifice there is you could not use a sink twice. In many cases that could be considered a feature.
The text was updated successfully, but these errors were encountered: