logikfabrik

Quick tip: Azure Function log level

1 min read

A quick tip:

When logging in a Azure Function, the recommended log level is Information (to capture dependency data, for instance). You set the log level in host.json.

If you like to use another log level during local development, you can override the log level in host.json, with a log level in local.settings.json. Like so;

{
  ...
  "Values": {
    "AzureFunctionsJobHost__Logging__LogLevel__Default": "Warning",
    ...
  }
}

For more information, see the documentation Monitor executions in Azure Functions.