Closed gustavo-armenta closed 6 years ago
I still need to set the machinename to COMPUTERNAME when running on windows, HOSTNAME when running on Linux, CF_INSTANCE_INDEX when running on PCF, and who knows what comes from other environments
Howdy, yes, but I don't think we want to take on that pain in this library :-)
Sounds reasonable. I have implemented a custom enricher. Thank you for the review :)
:+1: you're welcome
Hi - thanks for the PR. It's a bit environment-specific to make the change here; over time we'd end up with a soup of variables for different providers.
Perhaps a good option is just to add
Enrich.With("MachineName", Enivronment.GetEnvironmentVariable("CF_INSTANCE_INDEX")
to your logger configuration?NB