Azure / Azure/Azure-Functions

Log Level in Diagnostic Settings vs Application Insights

Open
#2,345 3 comments 0 reactions 1 assignee Claimed by @bhagyshricompany View on GitHub
feature Needs: Triage (functions)
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Hello,

In a .NET in-process Azure Function I'd like to log the full content of a service bus message to a storage account via the Diagnostic Settings integration, using `ILogger` or `ILogger`.

The issue is that the service bus message gets logged to Application Insights as well, and I'd like to avoid that, because of the size of the service bus message (which is a large JSON payload).

It's not clear how I can control the log level between the two (Application Insights and Diagnostic Settings). In host.json it seems you cannot control the log level per "sink" - https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#logging

Thank you,
Cosmin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.