Is there an easy way to log the requests? #431
-
When using the SDK, we see the dependency call to the dataverse like so But as you can see, it doesn't tell us what it is actually doing in that call. Is it querying data, or updating data etc. Is there any quick and easy way to log extra information out, like the Fetch XML included in the query. I'm looking for an out of the box way to do it with the SDK rather than rolling my own for now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, This message changes depending on if a session ID is present or not, and the type of message being sent. Additionally if you use the "ExecuteOrganizationRequest" extension, you can pass your own message that will be tagged in this log. |
Beta Was this translation helpful? Give feedback.
In your case, the logger you're passing in is assigned a log level, this is the level that logs will reported to whatever write sink you have attached to the logger. I misused the term "channel" in-place of LogLevel ( I think of these has channels as they can be handled independently, sorry for the confusion there).
Full documentation on Ilogger is here
the Dataverse ServiceClient, when executing the statement you have above will log the following on the Trace LogLevel:
when it starts and