I'm trying to configure the Loglevel for HttpClient and a custom component using environment variables. the configuration in json would be something like this:
{
"Logging": {
"LogLevel": {
"System.Net.Http.HttpClient": "Debug",
"MyCompany.MyProduct.MyComponent": "Debug"
}
}
}
Tried this values in windows and works:
"Logging__LogLevel__System.Net.Http.HttpClient"
"Logging__LogLevel__MyCompany.MyProduct.MyComponent"
Tried this in Linux but it doesn't work:
"Logging__LogLevel__System_Net_Http_HttpClient"
"Logging__LogLevel__MyCompany_MyProduct_MyComponent"
What is the correct way to configure that kind of variable in Linux?