In Azure Functions you use host.json to configure logging. However, the logging options/sections are unclear to me. Can someone help?
Per this: https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json
"logging": {
// FILE CONFIG?
"fileLoggingMode": "debugOnly"
"logLevel": {
"Function.MyFunction": "Information", // where is this log?
"default": "None"
},
// INSIGHTS CONFIG
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes" : "Dependency;Event",
"includedTypes" : "PageView;Trace"
},
Is the FILE CONFIG section used for logging in "log stream"? or is the INSIGHT section?
What is 'default' vs 'Function" log level?
I assume Filesystem logs is what controlled via FILE CONFIG section, correct?
- What configuration is used for "Monitor" section of Azure Functions?, is it FILE CONFIG? if so, If I wanted to see only errors under "Monitor" section would I set Function.MyFunction": "Error" or "default"?