Power BI custom connector application logs not appearing #297
Replies: 3 comments 4 replies
-
|
Hi @arindamroy19! To get the SDK to output logs, set the
The specified traces will be written to a logfile whose location is given in the output of For example, you could run something like the following, then look in the output produced for the |
Beta Was this translation helpful? Give feedback.
-
|
@mattmasson, is there a way to set some configuration value so that the IDE sets the log traces option when it runs tests? |
Beta Was this translation helpful? Give feedback.
-
|
@arindamroy19, also note that M statements are lazily evaluated, and query steps that aren't referenced/needed never actually get evaluated. So in your example, the diagnostics message would never be output unless another part of your query is actually trying to get the value of https://learn.microsoft.com/en-us/power-query/samples/trippin/8-diagnostics/readme |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a PowerBI custom connector for Zoho with OAuth2 flow using the Power Query SDK for VSCode. I want to emit debug/trace statements from the connector, and am using the following -
logMessage3 = Diagnostics.Trace(TraceLevel.Warning, "TextValueFromNumber", "In Contents", true),But, these logs don't appear in log files in the 'Power BI Desktop Store App\Traces' location. I only see PowerBI generic log statements. In Visual Studio Projects, there is a flag 'Show User Traces' - https://learn.microsoft.com/en-us/power-query/samples/trippin/8-diagnostics/readme
Is there something similar for VSCode SDK Projects?
Beta Was this translation helpful? Give feedback.
All reactions