I've been experiencing this issue since a couple of hours now.
Context: I'm running an Azure Function
v2.0project innodejs v12 LTSand I'm usingVS Code Debuggerwith the--verboseflag to debug my application
When I set the logLevel to Debug I never see the output of the context.log.verbose inside a function.
This is what my host.json file looks like:
{
"version": "2.0",
"logging": {
"logLevel": {
"default": "Debug"
}
}
}
PS: I'm not able to see the
verbose messagestoo on theApp Insightsin the Azure portal
CodePudding user response:
You need to set the logLevel to trace for context.log.verbose or you can use context.log.info with Debug logLevel.
After that is set correctly, you will be able to see the log in the App Insights. Example below:

CodePudding user response:
see this question Azure function verbose trace logging to Application Insights
