Azure function verbose trace logging to Application Insights Azure function verbose trace logging to Application Insights azure azure

Azure function verbose trace logging to Application Insights


You have a lot of control over your log levels for App Insights in Functions, but you don't use the tracing element for these. We're working on pulling the docs together in one cohesive location, but here's some links that can help:

For your specific example, you can open up all the Debug logs (which matches Verbose in TraceWriter) with this in your host.json:

{  "logger": {    "categoryFilter": {      "defaultLevel": "Debug"         }  }}

If you just want to see the verbose logs coming from your Function itself (i.e. you don't want the host's verbose logs appearing), you can restrict that with this -- which says 'for logs with the "Function" category (which is the category that function logs use), show me everything with Debug or higher log level':

{  "logger": {    "categoryFilter": {      "categoryLevels": {        "Function": "Debug"      }    }  }}