Skip to content

Is there an easy way to log the requests? #431

Answered by MattB-msft
Gareth064 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

Execute Command - RetrieveMultiple : Execute (RetrieveMultiple) request to Dataverse from IOrganizationService : RequestID=d6e9b544-5c06-45c8-8bb7-de1f2302deb5

when it starts and

Executed Command - RetrieveMultiple : Exec…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gareth064
Comment options

@MattB-msft
Comment options

Answer selected by MattB-msft
@Gareth064
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants