-
Notifications
You must be signed in to change notification settings - Fork 32
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
Azure Functions Environment #49
Comments
@nblumhardt I would like to take this on, maybe in combination with #48 ? My suggestion would be to add several overload:
|
Hi! I think |
True, but I would see it as a matter of convenience, because your solution will not handle the case where the environment variable is not set and the environment defaults to You could do something like Or in the library add another optional parameter to Similarly the simple ( I have thought a little about it and think all implementations of
So what is your take on 1. + 2. + 3. ? Leave as is because it is possible for developers to do their own "stuff" or I try and come up with an implementation ? |
fwiw, I don't think this repo should depend on external things like Microsoft.Extensions.* and such, and a self contained 'simple' setup could still be useful (I don't know how niche the 'fallbackValueWhenNotSet' idea might really be though) |
@Numpsy If you are depending on the exact environment variables used in |
Please capture Azure Functions Environment as well:
here
serilog-enrichers-environment/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentNameEnricher.cs
Line 56 in 77ea4c4
as per
https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azure_functions_environment
Thanks!
The text was updated successfully, but these errors were encountered: