Add support for overrides from environment variables#385
Add support for overrides from environment variables#385sungam3r wants to merge 1 commit intoserilog:devfrom
Conversation
|
If you prefer all new code can be moved under flag like |
|
@sungam3r there is OOTB solution is tracking on the MEC side. |
|
@sungam3r I have no strong opinion on this except general desire fix non-serilog issues outside serilog if possible. |
|
I don't think it's a good idea to handle this at the Serilog level. This should definitely be handled upstream. Also it seems there's a misunderstanding in your code/test. If I add your test ( Actually, the problem seems very specific to Azure (not the environment variables). See Werner Mairl's post who reports that the I was not able to reproduce this in the unit test. Calling |


One of my colleagues was faced with the problem when trying to set the value of the level override from environment variables. This PR helps to do that. @skomis-mm @nblumhardt I have a suspicion that there is another (simpler) solution and I do not believe that all this time no one has come across this problem. However, fix seems to be obvious and non-breaking affecting only cases when level overrides come from environment variables. Configuration from json files works well - it's safe to use dots there.