Skip to content

Commit c13270e

Browse files
committed
Update Debugging documentation to include info about _integrationLogLevel URL parameter.
1 parent 41e0f34 commit c13270e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

source/includes/_debugging.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ When developing an integration, it's helpful to know if the API is doing what yo
1717

1818
`?_integrationMode=debug`
1919

20-
This will allow the API to output some log messages to your browser's console regarding the actions it is taking. Additionally, you can instrument your own integration with log messages to validate that the expected code is being executed and desired code paths are being followed.
20+
This will allow the API to output some log messages to your browser's console regarding the actions it is taking.
2121

22-
To log messages from within your integration code, simply use the `API.log` method the same way you would use `console.log`. Those messages will be output to your console when the above URL parameter is present and will be suppressed when it is not.
22+
For more verbose logging, use this combination of URL parameters:
23+
24+
`?_integrationMode=debug&_integrationLogLevel=trace`
25+
26+
This will output more information about the actions being taken in your script to the browser console so you can more easily see what actions are happening. You can easily filter the browser console to show only these messages by typing `Web Integration API` into the `filter` field in your browser.
27+
28+
Additionally, you can instrument your own integration with log messages to validate that the expected code is being executed and desired code paths are being followed.
29+
30+
To log messages from within your integration code, simply use the `API.log` method the same way you would use `console.log`. Those messages will be output to your console when the above URL parameter is present and will be suppressed when it is not.

0 commit comments

Comments
 (0)