How to override an ASP.NET Core configuration array setting using environment variables

主宰稳场 提交于 2019-11-28 07:13:05

After looking at the configuration in the debugger I found the answer.

Serilog:WriteTo:0:Args:path

So I need to use the array index (zero based) as if it were a name.

Below the screen shot of the debugger in case it helps, also (thanks to Victor Hurdugaci in the comments), the unit tests are a good place to look for examples.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!