i have a appservice on azure that is running a .net core api.
in my appsettings.json file i have a section something similar to :
"Serilog": {
"LevelSwitches": { "$controlSwitch": "Information" },
"MinimumLevel": {
"ControlledBy": "$controlSwitch",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "LOGS\\log.json",
"rollingInterval": "Day",
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "https://MyLoggingServer",
"apiKey": "AAAAAAAAAAAAAAAAA",
"controlLevelSwitch": "$controlSwitch"
}
}
]}
In azure appsetting section on the azure portal i'm not sure how i would go about setting the apiKey, in other more simple settings i have another section in appsettings.json
"CustomSettings": {
"MySpecificSetting": "ABCDEFG",
}
Then in azure portal i have been able to set the setting by doing the following
CustomSettings:MySpecificSetting
but i'm not sure how this syntax would allow me to access the specific item in the writeTo array
Thanks for any help