-
Notifications
You must be signed in to change notification settings - Fork 131
Add support for overrides from environment variables #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
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.