Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ILogger in Custom Logic Apps Function Does Nothing #1240

Open
mindingdata opened this issue Nov 19, 2024 · 0 comments
Open

ILogger in Custom Logic Apps Function Does Nothing #1240

mindingdata opened this issue Nov 19, 2024 · 0 comments

Comments

@mindingdata
Copy link

mindingdata commented Nov 19, 2024

Describe the Bug

The documentation (https://learn.microsoft.com/en-us/azure/logic-apps/create-run-custom-code-functions#write-your-code) describes the ability to use ILogger to, and I quote :

The .cs file also includes the ILogger interface, which provides support for logging events to an Application Insights resource. You can send tracing information to Application Insights and store that information alongside the trace information from your workflows

From my testing this doesn't seem to be the case out of the box and I cannot find any other documentation around this.

My Logic App logs information to AppInsights but the ILogger calls inside C# code don't appear to log anything at this time.

Plan Type

Standard

Steps to Reproduce the Bug or Issue

Create a Logic App with custom code
Use ILogger (Information, Error etc)
See if those logs show up in LogAnalytics or AppInsights

Workflow JSON

Screenshots or Videos

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant